org.apache.sanselan.common
Class Compression

java.lang.Object
  extended by org.apache.sanselan.common.Compression

public class Compression
extends java.lang.Object


Constructor Summary
Compression()
           
 
Method Summary
 byte[] compressLZW(byte[] src, int LZWMinimumCodeSize, int byteOrder, boolean earlyLimit)
           
 byte[] decompressLZW(byte[] compressed, int LZWMinimumCodeSize, int expectedSize, int byteOrder)
           
 byte[] decompressPackBits(byte[] compressed, int expectedSize, int byteOrder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compression

public Compression()
Method Detail

decompressLZW

public byte[] decompressLZW(byte[] compressed,
                            int LZWMinimumCodeSize,
                            int expectedSize,
                            int byteOrder)
                     throws java.io.IOException
Throws:
java.io.IOException

decompressPackBits

public byte[] decompressPackBits(byte[] compressed,
                                 int expectedSize,
                                 int byteOrder)
                          throws ImageReadException,
                                 java.io.IOException
Throws:
ImageReadException
java.io.IOException

compressLZW

public byte[] compressLZW(byte[] src,
                          int LZWMinimumCodeSize,
                          int byteOrder,
                          boolean earlyLimit)
                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.