org.cdlib.xtf.util
Class SubStoreWriter

Object
  extended by SubStoreWriter
Direct Known Subclasses:
SubFileWriter

public abstract class SubStoreWriter
extends Object

Writes to a single sub-store within a StructuredStore. A sub-store provides most of the interface of a RandomAccessFile, and takes care of writing to the correct subset of the main StructuredStore.

Author:
Martin Haye

Constructor Summary
SubStoreWriter()
           
 
Method Summary
abstract  void close()
           
abstract  long length()
           
 void write(byte[] b)
           
abstract  void write(byte[] b, int off, int len)
           
abstract  void writeByte(int b)
           
 void writeChars(String s)
           
abstract  void writeInt(int v)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubStoreWriter

public SubStoreWriter()
Method Detail

write

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

write

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

writeByte

public abstract void writeByte(int b)
                        throws IOException
Throws:
IOException

writeChars

public void writeChars(String s)
                throws IOException
Throws:
IOException

writeInt

public abstract void writeInt(int v)
                       throws IOException
Throws:
IOException

length

public abstract long length()
                     throws IOException
Throws:
IOException

close

public abstract void close()
                    throws IOException
Throws:
IOException