public interface BitInSeekable extends Closeable
BitIn
implementation
that allows access to the encoded integers. Several implementations exist:
BitFileBuffered
- buffers an amount of data starting that the specified offset.BitFileInMemory
- reads the entire file into memory. File must be less than Integer.MAX_VALUE (2GB).BitFileInMemoryLarge
- reads the entire file into memory. File size only constrained by available memory.BitFileBuffered
,
BitOut
,
BitIn
Modifier and Type | Method and Description |
---|---|
BitIn |
readReset(long startByteOffset,
byte startBitOffset)
Reads from the file a specific number of bytes and after this
call, a sequence of read calls may follow.
|
BitIn |
readReset(long startByteOffset,
byte startBitOffset,
long endByteOffset,
byte endBitOffset)
Reads from the file a specific number of bytes and after this
call, a sequence of read calls may follow.
|
BitIn readReset(long startByteOffset, byte startBitOffset, long endByteOffset, byte endBitOffset) throws IOException
startByteOffset
- the starting byte to read fromstartBitOffset
- the bit offset in the starting byteendByteOffset
- the ending byteendBitOffset
- the bit offset in the ending byte.
This bit is the last bit of this entry.IOException
BitIn readReset(long startByteOffset, byte startBitOffset) throws IOException
startByteOffset
- the starting byte to read fromstartBitOffset
- the bit offset in the starting byteIOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow