Package org.loboevolution.pdfview.decode
Class ASCII85Decode
java.lang.Object
org.loboevolution.pdfview.decode.ASCII85Decode
decode ASCII85 text into a byte array.
Author Mike Wessler
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBuffer
decode
(ByteBuffer buf, PDFObject params) decode an array of bytes in ASCII85 format.
-
Method Details
-
decode
decode an array of bytes in ASCII85 format.In ASCII85 format, every 5 characters represents 4 decoded bytes in base 85. The entire stream can contain whitespace, and ends in the characters '~>'.
- Parameters:
buf
- the encoded ASCII85 characters in a byte bufferparams
- parameters to the decoder (ignored)- Returns:
- the decoded bytes
- Throws:
PDFParseException
- if any.
-