public class EndianDataInputStream extends Object
Constructor and Description |
---|
EndianDataInputStream(InputStream in)
Creates new EndianDataInputStream
|
Modifier and Type | Method and Description |
---|---|
void |
close()
close the stream
|
byte |
readByteBE()
read a byte in BigEndian - the same as LE because its only 1 byte
|
byte |
readByteLE()
read a byte in LittleEndian - the same as BE because its only 1 byte
|
void |
readByteLEnum(byte[] b)
read a byte in LittleEndian - the same as BE because its only 1 byte
|
double |
readDoubleBE()
read a 64bit double in BE
|
double |
readDoubleLE()
read a 64bit double in LE
|
int |
readIntBE()
read a 32bit int in BE
|
int |
readIntLE()
read a 32bit int in LE
|
long |
readLongBE()
read a 64bit long in BE
|
long |
readLongLE()
read a 64bit long in LE
|
short |
readShortBE()
read a 16bit short in BE
|
short |
readShortLE()
read a 16bit short in LE
|
int |
readUnsignedByteBE()
read a byte in BigEndian - the same as LE because its only 1 byte.
|
int |
readUnsignedByteLE()
read a byte in LittleEndian - the same as BE because its only 1 byte.
|
int |
skipBytes(int num)
skip ahead in the stream
|
public EndianDataInputStream(InputStream in)
public void close() throws IOException
IOException
public byte readByteBE() throws IOException
IOException
public byte readByteLE() throws IOException
IOException
public void readByteLEnum(byte[] b) throws IOException
IOException
public int readUnsignedByteBE() throws IOException
IOException
public int readUnsignedByteLE() throws IOException
IOException
public short readShortBE() throws IOException
IOException
public short readShortLE() throws IOException
IOException
public int readIntBE() throws IOException
IOException
public int readIntLE() throws IOException
IOException
public long readLongBE() throws IOException
IOException
public long readLongLE() throws IOException
IOException
public double readDoubleBE() throws IOException
IOException
public double readDoubleLE() throws IOException
IOException
public int skipBytes(int num) throws IOException
num
- number of bytes to read aheadIOException
Copyright © 2018. All rights reserved.