Package com.sun.pdfview.decode
Class PDFDecoder
- java.lang.Object
-
- com.sun.pdfview.decode.PDFDecoder
-
public class PDFDecoder extends java.lang.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.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PDFDecoder()
Creates a new instance of PDFDecoder
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.ByteBuffer
decodeStream(PDFObject dict, java.nio.ByteBuffer streamBuf)
decode a byte[] stream using the filters specified in the object's dictionary (passed as argument 1).
-
-
-
Method Detail
-
decodeStream
public static java.nio.ByteBuffer decodeStream(PDFObject dict, java.nio.ByteBuffer streamBuf) throws java.io.IOException
decode a byte[] stream using the filters specified in the object's dictionary (passed as argument 1).- Parameters:
dict
- the dictionary associated with the streamstreamBuf
- the data in the stream, as a byte buffer- Throws:
java.io.IOException
-
-