Class OutputCharTypes
java.lang.Object
com.fasterxml.aalto.util.XmlCharTypes
com.fasterxml.aalto.out.OutputCharTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intUnencodable means that while the name char may be acceptable per se, it can not be encode using current encoding(package private) static final intAlthough 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.private static XmlCharTypesprivate static XmlCharTypesprivate static final XmlCharTypesFields inherited from class XmlCharTypes
ATTR_CHARS, CT_AMP, CT_ATTR_QUOTE, CT_DTD_GT, CT_DTD_LT, CT_DTD_PERCENT, CT_DTD_QUOTE, CT_DTD_RBRACKET, CT_GT, CT_HYPHEN, CT_INVALID, CT_LBRACKET, CT_LT, CT_MULTIBYTE_2, CT_MULTIBYTE_3, CT_MULTIBYTE_4, CT_MULTIBYTE_N, CT_NAME_ANY, CT_NAME_COLON, CT_NAME_NONE, CT_NAME_NONFIRST, CT_OK, CT_QMARK, CT_RBRACKET, CT_WS_CR, CT_WS_LF, CT_WS_TAB, DTD_CHARS, NAME_CHARS, OTHER_CHARS, PUBID_CHARS, PUBID_INVALID, PUBID_OK, TEXT_CHARS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final XmlCharTypesstatic final XmlCharTypesstatic final XmlCharTypesprivate static voidmodifyAsciiNames(int[] charTable) private static voidmodifyForAscii(int[] charTable) private static voidmodifyForAttrWrite(int[] charTable) private static voidmodifyForLatin1(int[] charTable) private static voidmodifyForUtf8(int[] charTable) private static voidmodifyLatin1Names(int[] charTable) private static voidmodifyUtf8Names(int[] charTable) private static voidrequireQuotingAfter(int[] charTable, int lastValid) Methods inherited from class XmlCharTypes
fillIn8BitAttrRange, fillIn8BitDtdRange, fillIn8BitNameRange, fillIn8BitTextRange, fillInLatin1Chars
-
Field Details
-
MAIN_TABLE_SIZE
static final int MAIN_TABLE_SIZEAlthough 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:
-
CT_OUTPUT_MUST_QUOTE
public static final int CT_OUTPUT_MUST_QUOTE- See Also:
-
CT_OUTPUT_NAME_UNENCODABLE
public static final int CT_OUTPUT_NAME_UNENCODABLEUnencodable means that while the name char may be acceptable per se, it can not be encode using current encoding- See Also:
-
CT_OUTPUT_NAME_NONFIRST_MB2
public static final int CT_OUTPUT_NAME_NONFIRST_MB2- See Also:
-
CT_OUTPUT_NAME_ANY_MB2
public static final int CT_OUTPUT_NAME_ANY_MB2- See Also:
-
sAsciiCharTypes
-
sLatin1CharTypes
-
sUtf8CharTypes
-
-
Constructor Details
-
OutputCharTypes
public OutputCharTypes()
-
-
Method Details
-
getUtf8CharTypes
-
getLatin1CharTypes
-
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)
-