org.axiondb.io
Class AxionInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.axiondb.io.AxionInputStream
All Implemented Interfaces:
java.io.Closeable

public abstract class AxionInputStream
extends java.io.InputStream

AxionInputStream is a generic old InputStream with a little bit of RAF-style seek ability.

Version:
$Revision: 1.1 $ $Date: 2005/04/07 00:27:53 $

Constructor Summary
AxionInputStream()
           
 
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.InputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxionInputStream

public AxionInputStream()
Method Detail

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

getPos

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

Throws:
java.io.IOException