softparsmap
Class FilePointerPart

java.lang.Object
  extended bysoftparsmap.FilePointerPart
All Implemented Interfaces:
java.io.Serializable

public class FilePointerPart
extends java.lang.Object
implements java.io.Serializable

This class points to a block of bytes in a file. It is used to create indexes.

See Also:
Serialized Form

Constructor Summary
FilePointerPart(long pointer, int length)
          An instance needs a pointer which points into the file and how many bytes the block consists of.
 
Method Summary
 int getLength()
          Returns the length of the block.
 long getPointer()
          Returns the pointer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePointerPart

public FilePointerPart(long pointer,
                       int length)
An instance needs a pointer which points into the file and how many bytes the block consists of.

Parameters:
pointer - is the pointer
length - is the length of the block
Method Detail

getPointer

public long getPointer()
Returns the pointer.

Returns:
the pointer

getLength

public int getLength()
Returns the length of the block.

Returns:
the length