Class HuffmanTree<T>
java.lang.Object
org.apache.commons.imaging.common.itu_t4.HuffmanTree<T>
A Huffman tree implemented as 1 array for high locality of reference.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal T
decode
(BitInputStreamFlexible bitStream) private HuffmanTree.Node<T>
growAndGetNode
(int position) final void
-
Field Details
-
nodes
-
-
Constructor Details
-
HuffmanTree
HuffmanTree()
-
-
Method Details
-
insert
- Throws:
HuffmanTreeException
-
growAndGetNode
-
decode
- Throws:
HuffmanTreeException
-