fiftyone.mobile.detection.readers
Class BinaryReader

java.lang.Object
  extended by 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.
 
Constructor Summary
BinaryReader(byte[] data)
           
BinaryReader(ByteBuffer byteBuffer)
           
BinaryReader(FileInputStream fileInputStream)
           
 
Method Summary
 boolean readBoolean()
           
 byte readByte()
           
 byte[] readBytes(int length)
           
 short readInt16()
           
 int readInt32()
           
 void setPos(int pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BinaryReader

public BinaryReader(byte[] data)

BinaryReader

public BinaryReader(FileInputStream fileInputStream)
             throws IOException
Throws:
IOException

BinaryReader

public BinaryReader(ByteBuffer byteBuffer)
Method Detail

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)