fiftyone.mobile.detection.readers
Class BinaryReader
java.lang.Object
fiftyone.mobile.detection.readers.BinaryReader
public class BinaryReader
- extends Object
|
Field Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
list
public final List<Integer> list
- List of integers used to create arrays of integers where the length of
the list is not known before reading starts.
byteBuffer
private final ByteBuffer byteBuffer
BinaryReader
public BinaryReader(byte[] data)
BinaryReader
public BinaryReader(FileInputStream fileInputStream)
throws IOException
- Throws:
IOException
BinaryReader
public BinaryReader(ByteBuffer byteBuffer)
setPos
public void setPos(int pos)
readByte
public byte readByte()
readInt16
public short readInt16()
readInt32
public int readInt32()
readBoolean
public boolean readBoolean()
readBytes
public byte[] readBytes(int length)