org.cdlib.xtf.util
Class SubStoreReader
Object
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
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubStoreReader
public SubStoreReader()
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