public class PDFDecoder
extends java.lang.Object
You should use the decodeStream() method of this object rather than using any of the decoders directly.
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
DCT_FILTERS |
Modifier and Type | Method and Description |
---|---|
static java.nio.ByteBuffer |
decodeStream(PDFObject dict,
java.nio.ByteBuffer streamBuf,
java.util.Set<java.lang.String> filterLimits)
decode a byte[] stream using the filters specified in the object's
dictionary (passed as argument 1).
|
static boolean |
isEncrypted(PDFObject dict)
Determines whether a stream is encrypted or not; note that encodings
(e.g., Flate, LZW) are not considered encryptions.
|
static boolean |
isLastFilter(PDFObject dict,
java.util.Set<java.lang.String> filters) |
public static boolean isLastFilter(PDFObject dict, java.util.Set<java.lang.String> filters) throws java.io.IOException
java.io.IOException
public static java.nio.ByteBuffer decodeStream(PDFObject dict, java.nio.ByteBuffer streamBuf, java.util.Set<java.lang.String> filterLimits) throws java.io.IOException
dict
- the dictionary associated with the streamstreamBuf
- the data in the stream, as a byte bufferjava.io.IOException
public static boolean isEncrypted(PDFObject dict) throws java.io.IOException
dict
- the stream dictionaryjava.io.IOException
- if the stream dictionary can't be read