diff options
author | Sven Gothel <[email protected]> | 2012-10-25 01:31:32 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-25 01:31:32 -0700 |
commit | 232963f5e2069eaf339c0e8f61b192db8214853e (patch) | |
tree | 8d4091496f394909d474ffd8ceffbd729b7c22f9 | |
parent | e7cd1172e44b50049c6dc0bd45d3f9d73f7fe23d (diff) | |
parent | 66d511dc4fbe99dab3c65ce8600c6f33a1cd59f4 (diff) |
Merge pull request #2 from xranby/mark_reset
Fix mark/reset bug in com/jogamp/openal/test/resources/ResourceLocation....
-rw-r--r-- | src/test/com/jogamp/openal/test/resources/ResourceLocation.java | 3 |
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"); } |