Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-10-04 12:30:18 -0400
committerRoberto E. Escobar2011-10-04 12:30:18 -0400
commit5c1fa34b33e434944f4fdc0b1688bd248783bc1f (patch)
tree9927ec73711230d852e0166f662e87859d24560d /plugins/org.eclipse.osee.framework.resource.management/src
parent543025a49f2435aa8865abd54c2cf45b998bbf43 (diff)
downloadorg.eclipse.osee-5c1fa34b33e434944f4fdc0b1688bd248783bc1f.tar.gz
org.eclipse.osee-5c1fa34b33e434944f4fdc0b1688bd248783bc1f.tar.xz
org.eclipse.osee-5c1fa34b33e434944f4fdc0b1688bd248783bc1f.zip
refinement: Change resource to use BufferedInputStream
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/Resource.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resource.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resource.java
index c680a38419..d5cf44d820 100644
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resource.java
+++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/Resource.java
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.osee.framework.resource.management.util;
+import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
@@ -33,7 +34,7 @@ public class Resource implements IResource {
public InputStream getContent() throws OseeCoreException {
InputStream stream = null;
try {
- stream = uri.toURL().openStream();
+ stream = new BufferedInputStream(uri.toURL().openStream());
} catch (IOException ex) {
OseeExceptions.wrapAndThrow(ex);
}

Back to the top