org.crosswire.jsword.book.sword
Class DataIndex

java.lang.Object
  extended by org.crosswire.jsword.book.sword.DataIndex

public class DataIndex
extends Object

Data files are indexed by offset and size.

Author:
DM Smith [dmsmith555 at yahoo dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.

Field Summary
private  int offset
           
private  int size
           
 
Constructor Summary
DataIndex(int offset, int size)
          This data index is defined by an offset into a file and the size of the data to retrieve.
 
Method Summary
 int getOffset()
           
 int getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

private int offset

size

private int size
Constructor Detail

DataIndex

public DataIndex(int offset,
                 int size)
This data index is defined by an offset into a file and the size of the data to retrieve.

Parameters:
offset - The position in the file to which to seek
size - The number of bytes to read from the file.
Method Detail

getOffset

public int getOffset()
Returns:
the offset

getSize

public int getSize()
Returns:
the size

Copyright ยจ 2003-2007