Package de.jarnbjo.util.io
Class HuffmanNode
java.lang.Object
de.jarnbjo.util.io.HuffmanNode
public final class HuffmanNode
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected HuffmanNodeo0protected HuffmanNodeo1protected java.lang.Integervalue -
Constructor Summary
Constructors Modifier Constructor Description HuffmanNode()protectedHuffmanNode(HuffmanNode parent)protectedHuffmanNode(HuffmanNode parent, int value) -
Method Summary
Modifier and Type Method Description protected HuffmanNodeget0()protected HuffmanNodeget1()protected intgetDepth()protected java.lang.IntegergetValue()protected intread(BitInputStream bis)booleansetNewValue(int depth, int value)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
o0
-
o1
-
value
protected java.lang.Integer value
-
-
Constructor Details
-
HuffmanNode
public HuffmanNode() -
HuffmanNode
-
HuffmanNode
-
-
Method Details
-
read
- Throws:
java.io.IOException
-
get0
-
get1
-
getValue
protected java.lang.Integer getValue() -
getDepth
protected int getDepth() -
setNewValue
public boolean setNewValue(int depth, int value)
-