Class XmlCharTypes

java.lang.Object
com.fasterxml.aalto.util.XmlCharTypes
Direct Known Subclasses:
InputCharTypes, OutputCharTypes

public class XmlCharTypes extends Object
This is a simple container class, mostly used to encapsulate details of character typing out of parser/scanner/writer classes, while still making int arrays auto-generated only if needed (esp. for encodings never needed, which may be the case for ascii etc).
  • Field Details

    • CT_OK

      public static final int CT_OK
      See Also:
    • CT_INVALID

      public static final int CT_INVALID
      See Also:
    • CT_WS_CR

      public static final int CT_WS_CR
      See Also:
    • CT_WS_LF

      public static final int CT_WS_LF
      See Also:
    • CT_MULTIBYTE_N

      public static final int CT_MULTIBYTE_N
      See Also:
    • CT_MULTIBYTE_2

      public static final int CT_MULTIBYTE_2
      See Also:
    • CT_MULTIBYTE_3

      public static final int CT_MULTIBYTE_3
      See Also:
    • CT_MULTIBYTE_4

      public static final int CT_MULTIBYTE_4
      See Also:
    • CT_WS_TAB

      public static final int CT_WS_TAB
      See Also:
    • CT_LT

      public static final int CT_LT
      See Also:
    • CT_AMP

      public static final int CT_AMP
      See Also:
    • CT_RBRACKET

      public static final int CT_RBRACKET
      See Also:
    • CT_QMARK

      public static final int CT_QMARK
      See Also:
    • CT_HYPHEN

      public static final int CT_HYPHEN
      See Also:
    • CT_ATTR_QUOTE

      public static final int CT_ATTR_QUOTE
      See Also:
    • CT_LBRACKET

      public static final int CT_LBRACKET
      See Also:
    • CT_GT

      public static final int CT_GT
      See Also:
    • CT_DTD_QUOTE

      public static final int CT_DTD_QUOTE
      See Also:
    • CT_DTD_LT

      public static final int CT_DTD_LT
      See Also:
    • CT_DTD_GT

      public static final int CT_DTD_GT
      See Also:
    • CT_DTD_RBRACKET

      public static final int CT_DTD_RBRACKET
      See Also:
    • CT_DTD_PERCENT

      public static final int CT_DTD_PERCENT
      See Also:
    • CT_NAME_NONE

      public static final int CT_NAME_NONE
      See Also:
    • CT_NAME_COLON

      public static final int CT_NAME_COLON
      See Also:
    • CT_NAME_NONFIRST

      public static final int CT_NAME_NONFIRST
      See Also:
    • CT_NAME_ANY

      public static final int CT_NAME_ANY
      See Also:
    • PUBID_INVALID

      public static final int PUBID_INVALID
      See Also:
    • PUBID_OK

      public static final int PUBID_OK
      See Also:
    • TEXT_CHARS

      public final int[] TEXT_CHARS
      Character type table used for regular textual content (for CHARACTERS event)
    • ATTR_CHARS

      public final int[] ATTR_CHARS
      Character type table used for attribute values
    • NAME_CHARS

      public final int[] NAME_CHARS
      Character type table used for name characters (note: type ints used different from other tables)
    • DTD_CHARS

      public final int[] DTD_CHARS
      Character type table used for DTD subsets; contains a few additional types beyond most tables
    • OTHER_CHARS

      public final int[] OTHER_CHARS
      Character type table used for events other than CHARACTERS or elements; ie. for comments, PIs, CData, DTD internal subset
    • PUBID_CHARS

      public static final int[] PUBID_CHARS
      And finally, we also have shared table for valid public id characters...
  • Constructor Details

    • XmlCharTypes

      public XmlCharTypes()
    • XmlCharTypes

      public XmlCharTypes(int size)
  • Method Details

    • fillInLatin1Chars

      public static void fillInLatin1Chars(int[] textChars, int[] attrChars, int[] nameChars, int[] dtdChars, int[] otherChars)
    • fillInCommonTextRange

      private static void fillInCommonTextRange(int[] arr)
    • fillIn8BitNameRange

      public static void fillIn8BitNameRange(int[] arr)
    • fillIn8BitTextRange

      protected static void fillIn8BitTextRange(int[] arr)
      Called to set state of 7-bit chars in text content
    • fillIn8BitAttrRange

      protected static void fillIn8BitAttrRange(int[] arr)
      Called to set state of 7-bit chars in attribute values
    • fillIn8BitDtdRange

      protected static void fillIn8BitDtdRange(int[] arr)