Class LZWCompressor
- java.lang.Object
-
- org.exoplatform.imageio.plugins.common.LZWCompressor
-
public class LZWCompressor extends Object
-
-
Constructor Summary
Constructors Constructor Description LZWCompressor(ImageOutputStream out, int codeSize, boolean TIFF)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompress(byte[] buf, int offset, int length)voiddump(PrintStream out)voidflush()
-
-
-
Constructor Detail
-
LZWCompressor
public LZWCompressor(ImageOutputStream out, int codeSize, boolean TIFF) throws IOException
- Parameters:
out- destination for compressed datacodeSize- the initial code size for the LZW compressorTIFF- flag indicating that TIFF lzw fudge needs to be applied- Throws:
IOException- if underlying output stream error
-
-
Method Detail
-
compress
public void compress(byte[] buf, int offset, int length) throws IOException- Parameters:
buf- data to be compressed to output stream- Throws:
IOException- if underlying output stream error
-
flush
public void flush() throws IOException- Throws:
IOException
-
dump
public void dump(PrintStream out)
-
-