Package org.h2.dev.util
Class BinaryArithmeticStream.In
java.lang.Object
org.h2.dev.util.BinaryArithmeticStream
org.h2.dev.util.BinaryArithmeticStream.In
- Enclosing class:
BinaryArithmeticStream
A binary arithmetic input stream.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.h2.dev.util.BinaryArithmeticStream
BinaryArithmeticStream.Huffman, BinaryArithmeticStream.In, BinaryArithmeticStream.Out -
Field Summary
Fields inherited from class org.h2.dev.util.BinaryArithmeticStream
high, low, MAX_PROBABILITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanreadBit(int probability) Read a bit.intreadGolomb(int divisor) Read a value that is stored as a Golomb code.
-
Constructor Details
-
In
- Throws:
IOException
-
-
Method Details
-
readBit
Read a bit.- Parameters:
probability- the probability that the value is true- Returns:
- the value
- Throws:
IOException
-
readGolomb
Read a value that is stored as a Golomb code.- Parameters:
divisor- the divisor- Returns:
- the value
- Throws:
IOException
-