Class OutputCharTypes

    • Field Detail

      • MAIN_TABLE_SIZE

        static final int MAIN_TABLE_SIZE
        Although many encodings (Latin1, Ascii) could use shorter tables, for UTF-8 2k makes sense, as it will then cover both one and type byte sequences. And this being the case, let's use the same size for all encodings.
        See Also:
        Constant Field Values
      • CT_OUTPUT_NAME_UNENCODABLE

        public static final int CT_OUTPUT_NAME_UNENCODABLE
        Unencodable means that while the name char may be acceptable per se, it can not be encode using current encoding
        See Also:
        Constant Field Values
      • CT_OUTPUT_NAME_NONFIRST_MB2

        public static final int CT_OUTPUT_NAME_NONFIRST_MB2
        See Also:
        Constant Field Values
      • sAsciiCharTypes

        private static XmlCharTypes sAsciiCharTypes
      • sLatin1CharTypes

        private static XmlCharTypes sLatin1CharTypes
      • sUtf8CharTypes

        private static final XmlCharTypes sUtf8CharTypes
    • Constructor Detail

      • OutputCharTypes

        public OutputCharTypes()
    • Method Detail

      • getUtf8CharTypes

        public static final XmlCharTypes getUtf8CharTypes()
      • getLatin1CharTypes

        public static final XmlCharTypes getLatin1CharTypes()
      • getAsciiCharTypes

        public static final XmlCharTypes getAsciiCharTypes()
      • modifyForLatin1

        private static void modifyForLatin1​(int[] charTable)
      • modifyLatin1Names

        private static void modifyLatin1Names​(int[] charTable)
      • modifyForUtf8

        private static void modifyForUtf8​(int[] charTable)
      • modifyUtf8Names

        private static void modifyUtf8Names​(int[] charTable)
      • modifyForAscii

        private static void modifyForAscii​(int[] charTable)
      • modifyAsciiNames

        private static void modifyAsciiNames​(int[] charTable)
      • modifyForAttrWrite

        private static void modifyForAttrWrite​(int[] charTable)
      • requireQuotingAfter

        private static void requireQuotingAfter​(int[] charTable,
                                                int lastValid)