cz.cuni.jagrlib.piece
Class HuffmanCodec.HuffTree
java.lang.Object
cz.cuni.jagrlib.piece.HuffmanCodec.HuffTree
- Enclosing class:
- HuffmanCodec
protected static class HuffmanCodec.HuffTree
- extends java.lang.Object
Huffman tree (used as EntropyCodec
-context).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HuffmanCodec.HuffTree
public HuffmanCodec.HuffTree(int maxSymbol)
init
public void init(int maxSymbol)
getMaxSymbol
public final int getMaxSymbol()
printTree
public void printTree()
writeChar
public void writeChar(BitStream stream,
int character)
throws java.io.IOException
- Throws:
java.io.IOException
getChar
public int getChar(BitStream stream)
throws java.io.IOException
- Throws:
java.io.IOException