public static class BitStream.Huffman
extends java.lang.Object
| Constructor and Description |
|---|
Huffman(int[] frequencies) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBitCount(int value)
Get the number of bits of the Huffman code for this value.
|
int |
read(BitStream.In in)
Read a value.
|
void |
write(BitStream.Out out,
int value)
Write a value.
|
public void write(BitStream.Out out, int value)
out - the output streamvalue - the value to writepublic int read(BitStream.In in)
in - the input streampublic int getBitCount(int value)
value - the value