Class ASCIIHexDecode

java.lang.Object
org.loboevolution.pdfview.decode.ASCIIHexDecode

public final class ASCIIHexDecode extends Object
decode an array of hex nybbles into a byte array

Author Mike Wessler

  • Method Details

    • decode

      public static ByteBuffer decode(ByteBuffer buf, PDFObject params) throws PDFParseException
      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 buffer
      params - parameters to the decoder (ignored)
      Returns:
      the decoded bytes
      Throws:
      PDFParseException - if any.