Class HuffmanTable
java.lang.Object
org.apache.pdfbox.jbig2.decoder.huffman.HuffmanTable
- Direct Known Subclasses:
EncodedTable, FixedSizeTable, StandardTables.StandardTable
This abstract class is the base class for all types of huffman tables.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis static class represents a code for use in huffman tables. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcodeTableToString(List<HuffmanTable.Code> codeTable) longdecode(ImageInputStream iis) voidinitTree(List<HuffmanTable.Code> codeTable) private voidpreprocessCodes(List<HuffmanTable.Code> codeTable) toString()
-
Field Details
-
rootNode
-
-
Constructor Details
-
HuffmanTable
public HuffmanTable()
-
-
Method Details
-
initTree
-
decode
- Throws:
IOException
-
toString
-
codeTableToString
-
preprocessCodes
-