aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/io/StreamUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/impl/io/StreamUtil.java')
-rwxr-xr-xsrc/classes/com/sun/opengl/impl/io/StreamUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/classes/com/sun/opengl/impl/io/StreamUtil.java b/src/classes/com/sun/opengl/impl/io/StreamUtil.java
index 1d6a42ae1..948159223 100755
--- a/src/classes/com/sun/opengl/impl/io/StreamUtil.java
+++ b/src/classes/com/sun/opengl/impl/io/StreamUtil.java
@@ -50,7 +50,7 @@ public class StreamUtil {
private StreamUtil() {}
public static byte[] readAll2Array(InputStream stream) throws IOException {
- BytesRead bytesRead = readAll(stream);
+ BytesRead bytesRead = readAllImpl(stream);
byte[] data = bytesRead.data;
if (bytesRead.payloadLen != data.length) {
data = new byte[bytesRead.payloadLen];
@@ -60,11 +60,11 @@ public class StreamUtil {
}
public static ByteBuffer readAll2Buffer(InputStream stream) throws IOException {
- BytesRead bytesRead = readAll(stream);
+ BytesRead bytesRead = readAllImpl(stream);
return BufferUtil.newByteBuffer(bytesRead.data, 0, bytesRead.payloadLen);
}
- private static BytesRead readAll(InputStream stream) throws IOException {
+ private static BytesRead readAllImpl(InputStream stream) throws IOException {
// FIXME: Shall we do this here ?
if( !(stream instanceof BufferedInputStream) ) {
stream = new BufferedInputStream(stream);