multivalent.std.adaptor.pdf

Class DecodeLZW

public class DecodeLZW extends FilterInputStream

LZW filter. When making new PDFs, use a Flate filter (java.util.zip.InflaterInputStream), which was introduced in PDF 1.2, as it compresses better and is patent free.

From the PDF Reference:

Data encoded using the LZW compression method consists of a sequence of codes that are 9 to 12 bits long. Each code represents a single character of input data (<=255), a clear-table marker (256), an EOD marker (257), or a table entry representing a multiple-character sequence that has been encountered previously in the input (258 or greater).

Version: $Revision: 1.24 $ $Date: 2003/08/29 03:53:38 $

Constructor Summary
DecodeLZW(InputStream in, Dict parms, PDFReader pdfr)
Method Summary
voidclose()
booleanmarkSupported()
intread(byte[] b, int off, int len)
Speeds up phrase writing as opposed to read.
intread()

Constructor Detail

DecodeLZW

public DecodeLZW(InputStream in, Dict parms, PDFReader pdfr)

Method Detail

close

public void close()

markSupported

public boolean markSupported()

read

public int read(byte[] b, int off, int len)
Speeds up phrase writing as opposed to read. Used for images.

read

public int read()