40package com.jogamp.opengl.util.texture.spi;
42import java.io.DataInput;
43import java.io.DataInputStream;
44import java.io.FilterInputStream;
45import java.io.InputStream;
46import java.io.FileInputStream;
47import java.io.EOFException;
48import java.io.IOException;
77 DataInputStream dataIn;
82 dataIn =
new DataInputStream(in);
86 public void close() throws IOException
93 public synchronized final int read(
final byte b[])
throws IOException
95 return dataIn.read(b, 0, b.length);
99 public synchronized final int read(
final byte b[],
final int off,
final int len)
throws IOException
101 final int rl = dataIn.read(b, off, len);
106 public final void readFully(
final byte b[])
throws IOException
108 dataIn.readFully(b, 0, b.length);
112 public final void readFully(
final byte b[],
final int off,
final int len)
throws IOException
114 dataIn.readFully(b, off, len);
118 public final int skipBytes(
final int n)
throws IOException
120 return dataIn.skipBytes(n);
126 final int ch = dataIn.read();
128 throw new EOFException();
135 final int ch = dataIn.read();
137 throw new EOFException();
144 final int ch = dataIn.read();
146 throw new EOFException();
153 final int ch1 = dataIn.read();
154 final int ch2 = dataIn.read();
156 throw new EOFException();
157 return (
short)((ch1 << 0) + (ch2 << 8));
163 final int ch1 = dataIn.read();
164 final int ch2 = dataIn.read();
166 throw new EOFException();
167 return (ch1 << 0) + (ch2 << 8);
173 final int ch1 = dataIn.read();
174 final int ch2 = dataIn.read();
176 throw new EOFException();
177 return (
char)((ch1 << 0) + (ch2 << 8));
183 final int ch1 = dataIn.read();
184 final int ch2 = dataIn.read();
185 final int ch3 = dataIn.read();
186 final int ch4 = dataIn.read();
187 if ((ch1 | ch2 | ch3 | ch4) < 0)
188 throw new EOFException();
189 return ((ch1 << 0) + (ch2 << 8) + (ch3 << 16) + (ch4 << 24));
197 return (i1 & 0xFFFFFFFFL) + ((long)i2 << 32);
203 return Float.intBitsToFloat(
readInt());
209 return Double.longBitsToDouble(
readLong());
227 public final String
readUTF() throws IOException
236 public final static String
readUTF(
final DataInput in)
throws IOException
Little Endian Data Input Stream.
final String readUTF()
dont call this it is not implemented
final boolean readBoolean()
final void readFully(final byte b[])
synchronized final int read(final byte b[], final int off, final int len)
final double readDouble()
final int skipBytes(final int n)
final String readLine()
dont call this it is not implemented.
final int readUnsignedByte()
synchronized final int read(final byte b[])
static final String readUTF(final DataInput in)
dont call this it is not implemented
LEDataInputStream(final InputStream in)
final int readUnsignedShort()
final void readFully(final byte b[], final int off, final int len)