Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2011-11-02 19:53:10 -0400
committerRoberto E. Escobar2011-11-02 19:53:10 -0400
commit41280126e3e74d3d67f2dd362e8dd99a88c984c0 (patch)
tree4a88a9b7277c7cb1f6ada5187fe9624480e2ef60 /plugins/org.eclipse.osee.framework.resource.management/src
parentb7a5c30b94d28770f7f93fca6b281abaa39996b4 (diff)
downloadorg.eclipse.osee-41280126e3e74d3d67f2dd362e8dd99a88c984c0.tar.gz
org.eclipse.osee-41280126e3e74d3d67f2dd362e8dd99a88c984c0.tar.xz
org.eclipse.osee-41280126e3e74d3d67f2dd362e8dd99a88c984c0.zip
feature[ats_18K4T]: Multi-thread ORCS Query and improve getRelatedArtifacts search
Diffstat (limited to 'plugins/org.eclipse.osee.framework.resource.management/src')
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resources.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resources.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resources.java
index 87f0ea521c..9dc518ba39 100644
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resources.java
+++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resources.java
@@ -53,12 +53,16 @@ public class Resources {
String path = resource.getLocation().toASCIIString();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
String fileName = null;
+
+ InputStream inputStream = null;
try {
- fileName = Lib.decompressStream(resource.getContent(), outputStream);
+ inputStream = resource.getContent();
+ fileName = Lib.decompressStream(inputStream, outputStream);
fileName = URLEncoder.encode(fileName, "UTF-8");
} catch (IOException ex) {
OseeExceptions.wrapAndThrow(ex);
} finally {
+ Lib.close(inputStream);
Lib.close(outputStream);
}
if (fileName != null && fileName.length() > 0) {

Back to the top