public class BitFileInMemoryLarge extends Object implements BitInSeekable
Constructor and Description |
---|
BitFileInMemoryLarge(RandomDataInputMemory _rdim)
constructor
|
BitFileInMemoryLarge(String filename)
load compressed file into memory
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
BitIn |
readReset(long startByteOffset,
byte startBitOffset)
Reads from the file from a specific offset.
|
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.
|
public BitFileInMemoryLarge(RandomDataInputMemory _rdim) throws IOException
_rdim
- IOException
public BitFileInMemoryLarge(String filename) throws IOException
filename
- IOException
public BitIn readReset(long startByteOffset, byte startBitOffset, long endByteOffset, byte endBitOffset) throws IOException
readReset
in interface BitInSeekable
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
public BitIn readReset(long startByteOffset, byte startBitOffset) throws IOException
readReset
in interface BitInSeekable
startByteOffset
- the starting byte to read fromstartBitOffset
- the bit offset in the starting byteIOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow