org.cdlib.xtf.util
Class SubStoreReader

Object
  extended by SubStoreReader
Direct Known Subclasses:
SubFileReader

public abstract class SubStoreReader
extends Object

Reads from a single sub-store within a StructuredStore. A sub-store provides most of the interface of a RandomAccessFile, and takes care of reading from the correct subset of the main StructuredStore.

Author:
Martin Haye

Constructor Summary
SubStoreReader()
           
 
Method Summary
abstract  void close()
           
abstract  long getFilePointer()
           
abstract  long length()
           
 void read(byte[] b)
           
abstract  void read(byte[] b, int off, int len)
           
abstract  byte readByte()
           
abstract  int readInt()
           
abstract  void seek(long pos)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubStoreReader

public SubStoreReader()
Method Detail

close

public abstract void close()
                    throws IOException
Throws:
IOException

getFilePointer

public abstract long getFilePointer()
                             throws IOException
Throws:
IOException

length

public abstract long length()
                     throws IOException
Throws:
IOException

read

public void read(byte[] b)
          throws IOException
Throws:
IOException

read

public abstract void read(byte[] b,
                          int off,
                          int len)
                   throws IOException
Throws:
IOException

seek

public abstract void seek(long pos)
                   throws IOException
Throws:
IOException

readByte

public abstract byte readByte()
                       throws IOException
Throws:
IOException

readInt

public abstract int readInt()
                     throws IOException
Throws:
IOException