BinaryArithmeticStream.In

A binary arithmetic input stream.

Methods
boolean readBit(int probability)
Read a bit.
boolean readBit(int probability) throws IOException
Read a bit.
Parameters:
probability - the probability that the value is true
Returns:
the value
int readGolomb(int divisor)
Read a value that is stored as a Golomb code.
int readGolomb(int divisor) throws IOException
Read a value that is stored as a Golomb code.
Parameters:
divisor - the divisor
Returns:
the value