Package org.openpdf.renderer.decode
Class ASCIIHexDecode
java.lang.Object
org.openpdf.renderer.decode.ASCIIHexDecode
decode an array of hex nybbles into a byte array
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateASCIIHexDecode(ByteBuffer buf) initialize the decoder with an array of bytes in ASCIIHex format -
Method Summary
Modifier and TypeMethodDescriptionprivate ByteBufferdecode()decode the arraystatic ByteBufferdecode(ByteBuffer buf, PDFObject params) decode an array of bytes in ASCIIHex format.private intget the next character from the input
-
Field Details
-
buf
-
-
Constructor Details
-
ASCIIHexDecode
initialize the decoder with an array of bytes in ASCIIHex format
-
-
Method Details
-
readHexDigit
get the next character from the input- Returns:
- a number from 0-15, or -1 for the end character
- Throws:
PDFParseException
-
decode
decode the array- Returns:
- the decoded bytes
- Throws:
PDFParseException
-
decode
decode an array of bytes in ASCIIHex format.ASCIIHex format consists of a sequence of Hexidecimal digits, with possible whitespace, ending with the '>' character.
- Parameters:
buf- the encoded ASCII85 characters in a byte bufferparams- parameters to the decoder (ignored)- Returns:
- the decoded bytes
- Throws:
PDFParseException
-