org.crosswire.jsword.book.sword
Class DataIndex
java.lang.Object
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.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offset
private int offset
size
private int size
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 seeksize
- The number of bytes to read from the file.
getOffset
public int getOffset()
- Returns:
- the offset
getSize
public int getSize()
- Returns:
- the size