public class BinaryReader extends Object
| Modifier and Type | Field and Description |
|---|---|
private ByteBuffer |
byteBuffer |
List<Integer> |
list
List of integers used to create arrays of integers where the length of
the list is not known before reading starts.
|
| Constructor and Description |
|---|
BinaryReader(byte[] data) |
BinaryReader(ByteBuffer byteBuffer) |
BinaryReader(FileInputStream fileInputStream) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readBytes(int length) |
short |
readInt16() |
int |
readInt32() |
void |
setPos(int pos) |
public final List<Integer> list
private final ByteBuffer byteBuffer
public BinaryReader(byte[] data)
public BinaryReader(FileInputStream fileInputStream) throws IOException
IOExceptionpublic BinaryReader(ByteBuffer byteBuffer)