Package org.loboevolution.pdfview.decode
Class FlateDecode
java.lang.Object
org.loboevolution.pdfview.decode.FlateDecode
decode a deFlated byte array
Author Mike Wessler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBuffer
decode
(PDFObject dict, ByteBuffer buf, PDFObject params) decode a byte buffer in Flate format.
-
Constructor Details
-
FlateDecode
public FlateDecode()
-
-
Method Details
-
decode
public static ByteBuffer decode(PDFObject dict, ByteBuffer buf, PDFObject params) throws IOException decode a byte buffer in Flate format.Flate is a built-in Java algorithm. It's part of the java.util.zip package.
- Parameters:
dict
- aPDFObject
object.buf
- the deflated input bufferparams
- parameters to the decoder (unused)- Returns:
- the decoded (inflated) bytes
- Throws:
IOException
- if any.
-