|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BitOut
Interface describing the writing compression methods supported by the BitFile classes.
Method Summary | |
---|---|
byte |
getBitOffset()
Returns the bit offset in the last byte. |
long |
getByteOffset()
Returns the byte offset of the stream. |
int |
writeBinary(int len,
int x)
Writes an integer in binary format to the stream. |
int |
writeGamma(int x)
Writes an integer x into the stream using gamma encoding. |
int |
writeUnary(int x)
Writes an integer x using unary encoding. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
long getByteOffset()
byte getBitOffset()
int writeUnary(int x) throws java.io.IOException
x
- the number to write
java.io.IOException
- if an I/O error occurs.int writeGamma(int x) throws java.io.IOException
x
- the int number to write
java.io.IOException
- if an I/O error occurs.int writeBinary(int len, int x) throws java.io.IOException
len
- size in bits of the number.x
- the integer to write.
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 |