aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/openal/test/resources/ResourceLocation.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/com/jogamp/openal/test/resources/ResourceLocation.java b/src/test/com/jogamp/openal/test/resources/ResourceLocation.java
index f223644..cc9f29f 100644
--- a/src/test/com/jogamp/openal/test/resources/ResourceLocation.java
+++ b/src/test/com/jogamp/openal/test/resources/ResourceLocation.java
@@ -2,6 +2,7 @@
package com.jogamp.openal.test.resources;
import java.io.InputStream;
+import java.io.BufferedInputStream;
/** just a tag to locate the resources */
public class ResourceLocation {
@@ -23,7 +24,7 @@ public class ResourceLocation {
}
public static InputStream getInputStream(String fileName, boolean throwException) {
- InputStream stream = rl.getClass().getResourceAsStream(fileName);
+ InputStream stream = new BufferedInputStream(rl.getClass().getResourceAsStream(fileName));
if(throwException && null == stream) {
throw new RuntimeException("File '"+fileName+"' not found");
}