1
2
3
4
5
6 package org.galagosearch.tupleflow;
7
8 import java.io.DataInput;
9
10 /***
11 *
12 * @author trevor
13 */
14 public interface DataStream extends DataInput {
15 DataStream subStream(long start, long length);
16 long getPosition();
17 boolean isDone();
18 long length();
19
20 /***
21 * Seeks forward into the stream to a particular byte offset (reverse
22 * seeks are not allowed). The offset is relative to the start position of
23 * this data stream, not the beginning of the file.
24 */
25 void seek(long offset);
26 }