public static class BitStream.Out
extends java.lang.Object
| Constructor and Description |
|---|
Out(java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flush and close the stream.
|
void |
flush()
Flush the stream.
|
static int |
getGolombSize(int divisor,
int value)
Get the size of the Golomb code for this value.
|
void |
writeBit(int bit)
Write a bit.
|
void |
writeGolomb(int divisor,
int value)
Write the Golomb code of a value.
|
public void writeGolomb(int divisor,
int value)
divisor - the divisorvalue - the valuepublic static int getGolombSize(int divisor,
int value)
divisor - the divisorvalue - the valuepublic void writeBit(int bit)
bit - the bit (0 or 1)public void flush()
public void close()