public class

LZWCompressor

extends Object
java.lang.Object
   ↳ com.sun.imageio.plugins.common.LZWCompressor

Summary

Public Constructors
LZWCompressor(ImageOutputStream out, int codeSize, boolean TIFF)
Public Methods
void compress(byte[] buf, int offset, int length)
void dump(PrintStream out)
void flush()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LZWCompressor (ImageOutputStream out, int codeSize, boolean TIFF)

Parameters
out destination for compressed data
codeSize the initial code size for the LZW compressor
TIFF flag indicating that TIFF lzw fudge needs to be applied
Throws
IOException if underlying output stream error

Public Methods

public void compress (byte[] buf, int offset, int length)

Parameters
buf data to be compressed to output stream
Throws
IOException if underlying output stream error

public void dump (PrintStream out)

public void flush ()

Throws
IOException