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 TypeMethodDescriptionvoid
close()
final int
read
(byte[] b) final int
read
(byte[] b, int off, int len) final boolean
final byte
readByte()
final char
readChar()
final double
final float
final void
readFully
(byte[] b) final void
readFully
(byte[] b, int off, int len) final int
readInt()
final String
readLine()
dont call this it is not implemented.final long
readLong()
final short
final int
final int
final String
readUTF()
dont call this it is not implementedstatic final String
dont call this it is not implementedfinal int
skipBytes
(int n) Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
LEDataInputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readLine
dont call this it is not implemented.- Specified by:
readLine
in interfaceDataInput
- Returns:
- empty new string
- Throws:
IOException
-
readUTF
dont call this it is not implemented- Specified by:
readUTF
in interfaceDataInput
- Returns:
- empty new string
- Throws:
IOException
-
readUTF
dont call this it is not implemented- Returns:
- empty new string
- Throws:
IOException
-