Class LEDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.jogamp.opengl.util.texture.spi.LEDataInputStream
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable
Little Endian Data Input Stream.
This class implements an input stream filter to allow reading
of java native datatypes from an input stream which has those
native datatypes stored in a little endian byte order.
This is the sister class of the DataInputStream which allows for reading of java native datatypes from an input stream with the datatypes stored in big endian byte order.
This class implements the minimum required and calls DataInputStream for some of the required methods for DataInput.
Not all methods are implemented due to lack of immediatte requirement for that functionality. It is not clear if it is ever going to be functionally required to be able to read UTF data in a LittleEndianManner
- Version:
- 1.1 15/Dec/1997
- Author:
- Robin Luiten
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final intread(byte[] b) final intread(byte[] b, int off, int len) final booleanfinal bytereadByte()final charreadChar()final doublefinal floatfinal voidreadFully(byte[] b) final voidreadFully(byte[] b, int off, int len) final intreadInt()final StringreadLine()dont call this it is not implemented.final longreadLong()final shortfinal intfinal intfinal StringreadUTF()dont call this it is not implementedstatic final Stringdont call this it is not implementedfinal intskipBytes(int n) Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
LEDataInputStream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
dont call this it is not implemented.- Specified by:
readLinein interfaceDataInput- Returns:
- empty new string
- Throws:
IOException
-
readUTF
dont call this it is not implemented- Specified by:
readUTFin interfaceDataInput- Returns:
- empty new string
- Throws:
IOException
-
readUTF
dont call this it is not implemented- Returns:
- empty new string
- Throws:
IOException
-