org.axiondb.io
Class AxionOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.axiondb.io.AxionOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public abstract class AxionOutputStream
extends java.io.OutputStream

AxionOutputStream is an OutputStream that can track its position.

Version:
$Revision: 1.3 $ $Date: 2005/04/14 00:30:02 $

Constructor Summary
AxionOutputStream()
           
 
Method Summary
abstract  long getPos()
          Return the current offset from the start of the file
abstract  void seek(long pos)
          Seek to the given offset from the start of the file.
 
Methods inherited from class java.io.OutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxionOutputStream

public AxionOutputStream()
Method Detail

getPos

public abstract long getPos()
                     throws java.io.IOException
Return the current offset from the start of the file

Throws:
java.io.IOException

seek

public abstract void seek(long pos)
                   throws java.io.IOException
Seek to the given offset from the start of the file. The next read() will be from that location. Can't seek past the end of the file.

Throws:
java.io.IOException