BinaryArithmeticStream.Out

A binary arithmetic output stream.

Methods
void flush()
Flush the stream.
void flush() throws IOException
Flush the stream.
void writeBit(boolean value, int probability)
Write a bit.
void writeBit(boolean value, int probability) throws IOException
Write a bit.
Parameters:
value - the value
probability - the probability that the value is true
void writeGolomb(int divisor, int value)
Write the Golomb code of a value.
void writeGolomb(int divisor, int value) throws IOException
Write the Golomb code of a value.
Parameters:
divisor - the divisor
value - the value