com.sun.pdfview.decode

Class PDFDecoder

public class PDFDecoder extends Object

A PDF Decoder encapsulates all the methods of decoding a stream of bytes based on all the various encoding methods.

You should use the decodeStream() method of this object rather than using any of the decoders directly.

Method Summary
static ByteBufferdecodeStream(PDFObject dict, ByteBuffer streamBuf)
decode a byte[] stream using the filters specified in the object's dictionary (passed as argument 1).

Method Detail

decodeStream

public static ByteBuffer decodeStream(PDFObject dict, ByteBuffer streamBuf)
decode a byte[] stream using the filters specified in the object's dictionary (passed as argument 1).

Parameters: dict the dictionary associated with the stream streamBuf the data in the stream, as a byte buffer