com.sun.pdfview.decode

Class LZWDecode

public class LZWDecode extends Object

decode an LZW-encoded array of bytes. LZW is a patented algorithm. Consult with Sun Legal before using this code in a commercial product.
Method Summary
static ByteBufferdecode(ByteBuffer buf, PDFObject params)
decode an array of LZW-encoded bytes to a byte array.

Method Detail

decode

public static ByteBuffer decode(ByteBuffer buf, PDFObject params)
decode an array of LZW-encoded bytes to a byte array.

Parameters: buf the buffer of encoded bytes params parameters for the decoder (unused)

Returns: the decoded uncompressed bytes