cz.cuni.jagrlib.piece
Class HuffmanCodec.HuffTree

java.lang.Object
  extended by cz.cuni.jagrlib.piece.HuffmanCodec.HuffTree
Enclosing class:
HuffmanCodec

protected static class HuffmanCodec.HuffTree
extends java.lang.Object

Huffman tree (used as EntropyCodec-context).


Constructor Summary
HuffmanCodec.HuffTree(int maxSymbol)
           
 
Method Summary
 int getChar(BitStream stream)
           
 int getMaxSymbol()
           
 void init(int maxSymbol)
           
 void printTree()
           
 void writeChar(BitStream stream, int character)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HuffmanCodec.HuffTree

public HuffmanCodec.HuffTree(int maxSymbol)
Method Detail

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