com.tagtraum.perf.util
Class HuffmanTree

java.lang.Object
  |
  +--com.tagtraum.perf.util.HuffmanTree

public class HuffmanTree
extends java.lang.Object

Implementation of a Huffmantree. Note that this class is not optimized.

Version:
$Id: $
Author:
Hendrik Schreiber

Constructor Summary
HuffmanTree()
           
 
Method Summary
 byte[] decode(java.io.InputStream in)
           
 void encode(byte[] plaintext, int offset, int length, java.io.OutputStream rawOut)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HuffmanTree

public HuffmanTree()
Method Detail

encode

public void encode(byte[] plaintext,
                   int offset,
                   int length,
                   java.io.OutputStream rawOut)
            throws java.io.IOException
java.io.IOException

decode

public byte[] decode(java.io.InputStream in)
              throws java.io.IOException
java.io.IOException


Copyright © 2002 Hendrik Schreiber
http://www.tagtraum.com/performance/
This software can be distributed under LGPL