Package org.h2.dev.util
Class BitStream.In
java.lang.Object
org.h2.dev.util.BitStream.In
- Enclosing class:
BitStream
A bit input stream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the stream.intreadBit()Read a bit.intreadGolomb(int divisor) Read a value that is stored as a Golomb code.
-
Constructor Details
-
In
-
-
Method Details
-
readGolomb
public int readGolomb(int divisor) Read a value that is stored as a Golomb code.- Parameters:
divisor- the divisor- Returns:
- the value
-
readBit
public int readBit()Read a bit.- Returns:
- the bit (0 or 1)
-
close
public void close()Close the stream. This will also close the underlying stream.
-