Package org.h2.dev.util
Class BinaryArithmeticStream.Huffman
java.lang.Object
org.h2.dev.util.BinaryArithmeticStream.Huffman
- Enclosing class:
BinaryArithmeticStream
A Huffman code table / tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintRead a value.voidwrite(BinaryArithmeticStream.Out out, int value) Write a value.
-
Constructor Details
-
Huffman
public Huffman(int[] frequencies)
-
-
Method Details
-
write
Write a value.- Parameters:
out- the output streamvalue- the value to write- Throws:
IOException
-
read
Read a value.- Parameters:
in- the input stream- Returns:
- the value
- Throws:
IOException
-