Top Description Inners Fields Constructors Methods
org.apache.pdfbox.jbig2.decoder.huffman

public abstract Class HuffmanTable

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.jbig2.decoder.huffman.StandardTables.StandardTable, org.apache.pdfbox.jbig2.decoder.huffman.EncodedTable, org.apache.pdfbox.jbig2.decoder.huffman.FixedSizeTable
Imports
java.io.IOException, java.util.List, javax.imageio.stream.ImageInputStream

This abstract class is the base class for all types of huffman tables.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
HuffmanTable.Code

This static class represents a code for use in huffman tables.

Field Summary

Modifier and TypeField and Description
private InternalNode

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public long
public void
private void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

rootNodeback to summary
private InternalNode rootNode

Constructor Detail

HuffmanTableback to summary
public HuffmanTable()

Method Detail

codeTableToStringback to summary
public static String codeTableToString(List<HuffmanTable.Code> codeTable)
decodeback to summary
public long decode(ImageInputStream iis) throws IOException
initTreeback to summary
public void initTree(List<HuffmanTable.Code> codeTable)
preprocessCodesback to summary
private void preprocessCodes(List<HuffmanTable.Code> codeTable)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
org.apache.pdfbox.jbig2.decoder.huffman back to summary

public Class HuffmanTable.Code

extends Object
Class Inheritance

This static class represents a code for use in huffman tables.

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv final boolean
pack-priv final int
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
Code(int prefixLength, int rangeLength, int rangeLow, boolean isLowerRange)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

codeback to summary
pack-priv int code
isLowerRangeback to summary
pack-priv final boolean isLowerRange
prefixLengthback to summary
pack-priv final int prefixLength
rangeLengthback to summary
pack-priv final int rangeLength
rangeLowback to summary
pack-priv final int rangeLow

Constructor Detail

Codeback to summary
public Code(int prefixLength, int rangeLength, int rangeLow, boolean isLowerRange)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override