org.galagosearch.tupleflow
Interface DataStream

All Superinterfaces:
java.io.DataInput
All Known Implementing Classes:
BufferedFileDataStream, MemoryDataStream

public interface DataStream
extends java.io.DataInput

Author:
trevor

Method Summary
 long getPosition()
           
 boolean isDone()
           
 long length()
           
 void seek(long offset)
          Seeks forward into the stream to a particular byte offset (reverse seeks are not allowed).
 DataStream subStream(long start, long length)
           
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Method Detail

subStream

DataStream subStream(long start,
                     long length)

getPosition

long getPosition()

isDone

boolean isDone()

length

long length()

seek

void seek(long offset)
Seeks forward into the stream to a particular byte offset (reverse seeks are not allowed). The offset is relative to the start position of this data stream, not the beginning of the file.



Copyright © 2009. All Rights Reserved.