|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BitIn
Interface describing the read compression methods supported by the BitFile and BitInputStream classes.
| Method Summary | |
|---|---|
void |
align()
Aligns the stream to the next byte |
byte |
getBitOffset()
Returns the bit offset in the last byte. |
long |
getByteOffset()
Returns the byte offset of the stream. |
int |
readBinary(int len)
Reads a binary integer from the already read buffer. |
int |
readGamma()
Reads a gamma encoded integer from the underlying stream |
int |
readUnary()
Reads a unary encoded integer from the underlying stream |
void |
skipBits(int len)
Skip a number of bits while reading the bit file. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
long getByteOffset()
byte getBitOffset()
int readUnary()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
int readGamma()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
int readBinary(int len)
throws java.io.IOException
len - the number of binary bits to read
java.io.IOException - if an I/O error occurs
void skipBits(int len)
throws java.io.IOException
len - The number of bits to skip
java.io.IOException - if an I/O error occurs
void align()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||