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
  See Also:
    `The GNU Lesser General Public License for details.`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private int` | `offset`
    `private int` | `size`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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