Package com.fasterxml.aalto.out
Class OutputCharTypes
java.lang.Object
com.fasterxml.aalto.util.XmlCharTypes
com.fasterxml.aalto.out.OutputCharTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Unencodable means that while the name char may be acceptable per se, it can not be encode using current encoding(package private) static final int
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.private static XmlCharTypes
private static XmlCharTypes
private static final XmlCharTypes
Fields inherited from class com.fasterxml.aalto.util.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 XmlCharTypes
static final XmlCharTypes
static final XmlCharTypes
private static void
modifyAsciiNames
(int[] charTable) private static void
modifyForAscii
(int[] charTable) private static void
modifyForAttrWrite
(int[] charTable) private static void
modifyForLatin1
(int[] charTable) private static void
modifyForUtf8
(int[] charTable) private static void
modifyLatin1Names
(int[] charTable) private static void
modifyUtf8Names
(int[] charTable) private static void
requireQuotingAfter
(int[] charTable, int lastValid) Methods inherited from class com.fasterxml.aalto.util.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)
-