fiftyone.mobile.detection.headers
Class Header

java.lang.Object
  extended by fiftyone.mobile.detection.headers.Header

public class Header
extends Object

Every list contains a standard initial header. This class provides the basic properties needed to access lists irrespective of the storage implementation.


Field Summary
private  int count
          The number of items contain in the collection.
private  int length
          The number of bytes consumed by the data structure.
private  int startPosition
          The position in the file where the data structure starts.
 
Constructor Summary
Header(BinaryReader reader)
          Constructs a new instance of Header
 
Method Summary
 int getCount()
           
 int getLength()
           
 int getStartPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

private final int count
The number of items contain in the collection.


startPosition

private final int startPosition
The position in the file where the data structure starts.


length

private final int length
The number of bytes consumed by the data structure.

Constructor Detail

Header

public Header(BinaryReader reader)
Constructs a new instance of Header

Parameters:
reader - Reader connected to the source data structure and positioned to start reading
Method Detail

getCount

public int getCount()

getStartPosition

public int getStartPosition()

getLength

public int getLength()