protected static class BitFileBuffered.BitInBuffered extends BitInBase
Modifier and Type | Field and Description |
---|---|
protected byte[] |
inBuffer
buffer for the slice of the file being read
|
protected RandomDataInput |
parentFile
parent file
|
protected int |
readByteOffset
byte offset within the buffer
|
protected int |
size
size of the buffer
|
USUAL_EXTENSION
Modifier | Constructor and Description |
---|---|
protected |
BitInBuffered()
empty constructor for child classes
|
|
BitInBuffered(RandomDataInput file,
long startByteOffset,
byte _bitOffset,
int _bufLength)
Construct a new BitInBuffered on the specified file, starting at the given offset
and with the specified buffer length.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing
|
protected void |
incrByte()
Move forward one byte
|
protected void |
incrByte(int i)
Move forward i bytes
|
void |
skipBytes(long len)
Skip a number of bytes while reading the bit file.
|
align, getBitOffset, getByteOffset, readBinary, readDelta, readGamma, readGolomb, readIn, readInterpolativeCoding, readMinimalBinary, readMinimalBinaryZero, readSkewedGolomb, readUnary, skipBits
protected RandomDataInput parentFile
protected byte[] inBuffer
protected int size
protected int readByteOffset
protected BitInBuffered()
public BitInBuffered(RandomDataInput file, long startByteOffset, byte _bitOffset, int _bufLength)
file
- File to seek onstartByteOffset
- Start byte offset_bitOffset
- Start bit offset_bufLength
- Number of bytes to bufferprotected void incrByte(int i)
public void skipBytes(long len) throws IOException
len
- The number of bytes to skipIOException
- if an I/O error occurspublic void close()
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow