public class EndianDataInputStream extends Object
| 构造器 | 说明 |
|---|---|
EndianDataInputStream(InputStream in) |
Creates new EndianDataInputStream
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
close() |
close the strea
|
byte |
readByteBE() |
read a byte in BigEndian - the same as LE because its only 1 byt
|
byte |
readByteLE() |
read a byte in LittleEndian - the same as BE because its only 1 byt
|
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)
in - public void close()
throws IOException
IOExceptionpublic byte readByteBE()
throws IOException
IOExceptionpublic byte readByteLE()
throws IOException
IOExceptionpublic void readByteLEnum(byte[] b)
throws IOException
IOExceptionpublic int readUnsignedByteBE()
throws IOException
IOExceptionpublic int readUnsignedByteLE()
throws IOException
IOExceptionpublic short readShortBE()
throws IOException
IOExceptionpublic short readShortLE()
throws IOException
IOExceptionpublic int readIntBE()
throws IOException
IOExceptionpublic int readIntLE()
throws IOException
IOExceptionpublic long readLongBE()
throws IOException
IOExceptionpublic long readLongLE()
throws IOException
IOExceptionpublic double readDoubleBE()
throws IOException
IOExceptionpublic double readDoubleLE()
throws IOException
IOExceptionpublic int skipBytes(int num)
throws IOException
num - number of bytes to read aheadIOExceptionCopyright © 2019. All rights reserved.