From 66d511dc4fbe99dab3c65ce8600c6f33a1cd59f4 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Wed, 24 Oct 2012 22:05:46 +0200 Subject: Fix mark/reset bug in com/jogamp/openal/test/resources/ResourceLocation.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fix will re-enable the manual OpenALTest to work. java -cp gluegen-rt.jar:joal.jar:joal-test.jar com.jogamp.openal.test.manual.OpenALTest Signed-off-by: Xerxes Rånby --- src/test/com/jogamp/openal/test/resources/ResourceLocation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/com/jogamp') 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"); } -- cgit v1.2.3