You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2016/01/10 23:03:06 UTC
[2/2] oodt git commit: Close stream
Close stream
Project: http://git-wip-us.apache.org/repos/asf/oodt/repo
Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/d9141ec4
Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/d9141ec4
Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/d9141ec4
Branch: refs/heads/master
Commit: d9141ec421a48c6a3ce8d5f51f358355f653cd6f
Parents: f607b28
Author: Tom Barber <to...@analytical-labs.com>
Authored: Sun Jan 10 22:02:51 2016 +0000
Committer: Tom Barber <to...@analytical-labs.com>
Committed: Sun Jan 10 22:02:51 2016 +0000
----------------------------------------------------------------------
.../apache/oodt/cas/filemgr/system/XmlRpcFileManager.java | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/oodt/blob/d9141ec4/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
----------------------------------------------------------------------
diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
index 8c78434..2b0d5dc 100644
--- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
+++ b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
@@ -956,6 +956,15 @@ public class XmlRpcFileManager {
+ filePath + ": Message: " + e.getMessage());
success = false;
}
+ finally {
+ try {
+ if (fOut != null) {
+ fOut.close();
+ }
+ } catch (IOException e) {
+ LOG.log(Level.SEVERE, "Could not close file stream", e.getMessage());
+ }
+ }
} else {
// create the output directory
String outFileDirPath = outFile.getAbsolutePath().substring(0,