nom.tam.util
Interface RandomAccess

All Superinterfaces:
ArrayDataInput, java.io.DataInput
All Known Subinterfaces:
DataIO
All Known Implementing Classes:
BufferedFile

public interface RandomAccess
extends ArrayDataInput

These packages define the methods which indicate that an i/o stream may be accessed in arbitrary order. The method signatures are taken from RandomAccessFile though that class does not implement this interface.


Method Summary
 long getFilePointer()
          Get the current position in the stream
 void seek(long offsetFromStart)
          Move to a specified location in the stream.
 
Methods inherited from interface nom.tam.util.ArrayDataInput
close, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readArray, skip
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Method Detail

seek

void seek(long offsetFromStart)
          throws java.io.IOException
Move to a specified location in the stream.

Throws:
java.io.IOException

getFilePointer

long getFilePointer()
Get the current position in the stream