Class ASCIIHexFilter

java.lang.Object
org.apache.pdfbox.filter.Filter
org.apache.pdfbox.filter.ASCIIHexFilter

final class ASCIIHexFilter extends Filter
Decodes data encoded in an ASCII hexadecimal form, reproducing the original binary data.
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
    • REVERSE_HEX

      private static final int[] REVERSE_HEX
  • Constructor Details

    • ASCIIHexFilter

      ASCIIHexFilter()
  • Method Details

    • decode

      public DecodeResult decode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index) throws IOException
      Description copied from class: Filter
      Decodes data, producing the original non-encoded data.
      Specified by:
      decode in class Filter
      Parameters:
      encoded - the encoded byte stream
      decoded - the stream where decoded data will be written
      parameters - the parameters used for decoding
      index - the index to the filter being decoded
      Returns:
      repaired parameters dictionary, or the original parameters dictionary
      Throws:
      IOException - if the stream cannot be decoded
    • isWhitespace

      private boolean isWhitespace(int c)
    • isEOD

      private boolean isEOD(int c)
    • encode

      public void encode(InputStream input, OutputStream encoded, COSDictionary parameters) throws IOException
      Specified by:
      encode in class Filter
      Throws:
      IOException