net.sourceforge.plantuml.code
Class CompressionHuffman

java.lang.Object
  extended by net.sourceforge.plantuml.code.CompressionHuffman
All Implemented Interfaces:
Compression

public class CompressionHuffman
extends Object
implements Compression


Constructor Summary
CompressionHuffman()
           
 
Method Summary
 byte[] compress(byte[] in)
          Shrinks the given in array with length len
 byte[] decompress(byte[] in)
          Grows the given in array with length len compressed with the shrink method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressionHuffman

public CompressionHuffman()
Method Detail

compress

public byte[] compress(byte[] in)
Description copied from interface: Compression
Shrinks the given in array with length len

Specified by:
compress in interface Compression
Returns:
a newly created array with the compressed data.

decompress

public byte[] decompress(byte[] in)
                  throws IOException
Description copied from interface: Compression
Grows the given in array with length len compressed with the shrink method.

Specified by:
decompress in interface Compression
Returns:
a newly created array with the expanded data.
Throws:
IOException


Copyright © 2011. All Rights Reserved.