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

pack-priv Class InternalNode

extends Node
Class Inheritance
Imports
java.io.IOException, javax.imageio.stream.ImageInputStream, org.apache.pdfbox.jbig2.decoder.huffman.HuffmanTable.Code

This class represents an internal node of a huffman tree. It contains two child nodes.

Field Summary

Modifier and TypeField and Description
private final int
private Node
private Node

Constructor Summary

AccessConstructor and Description
protected
protected
InternalNode(int depth)

Method Summary

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

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

depthback to summary
private final int depth
oneback to summary
private Node one
zeroback to summary
private Node zero

Constructor Detail

InternalNodeback to summary
protected InternalNode()
InternalNodeback to summary
protected InternalNode(int depth)

Method Detail

appendback to summary
protected void append(HuffmanTable.Code c)
decodeback to summary
protected long decode(ImageInputStream iis) throws IOException

Implements abstract org.apache.pdfbox.jbig2.decoder.huffman.Node.decode.

Annotations
@Override
padback to summary
private void pad(StringBuilder sb)
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