Class PDFDocEncodingMapGenerator


  • public class PDFDocEncodingMapGenerator
    extends java.lang.Object

    Parses text from the PDF reference describing the PDFDocEncoding and verifies it against standard Unicode character names and a few other heuristics to establish correctness. Outputs a table to be used for decoding, destined for PDFStringUtil.

    • Constructor Detail

      • PDFDocEncodingMapGenerator

        public PDFDocEncodingMapGenerator()
    • Method Detail

      • main

        public static final void main​(java.lang.String[] args)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • formatArrayEntry

        private static java.lang.String formatArrayEntry​(int charVal)
      • readEncodingLine

        private static java.lang.String readEncodingLine​(java.io.BufferedReader r)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDecLine

        private static int parseDecLine​(java.lang.String notesLine)
      • readUnicodeNames

        private static java.util.Map<java.lang.String,​java.lang.Character> readUnicodeNames()
                                                                                           throws java.io.IOException
        Throws:
        java.io.IOException