public class LittleEndianInputStream extends DataInputStreamEx
DataInputStreamEx
in
Constructor and Description |
---|
LittleEndianInputStream(InputStream is)
Creates a new little endian input stream.
|
Modifier and Type | Method and Description |
---|---|
int |
readIntLE()
Read an integer from this stream in little endian byte order.
|
short |
readShortLE()
Read a short from this stream in little endian byte order.
|
String |
readStringLLLE()
Read a string from this stream prefixed by its length, a short in
little endian byte order.
|
readBytes, readString, readString0, readStringL, readStringLL, readStringNullPadded, readStringUntilNull
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
available, close, mark, markSupported, read, reset, skip
public LittleEndianInputStream(InputStream is)
is
- the underlying input streampublic int readIntLE() throws IOException
IOException
- if an error occurspublic short readShortLE() throws IOException
IOException
- if an error occurspublic String readStringLLLE() throws IOException
IOException
- if an error occurs