Package com.fasterxml.aalto.out
Class OutputCharTypes
- java.lang.Object
-
- com.fasterxml.aalto.util.XmlCharTypes
-
- com.fasterxml.aalto.out.OutputCharTypes
-
public final class OutputCharTypes extends XmlCharTypes
-
-
Field Summary
Fields Modifier and Type Field Description static int
CT_OUTPUT_MUST_QUOTE
static int
CT_OUTPUT_NAME_ANY_MB2
static int
CT_OUTPUT_NAME_NONFIRST_MB2
static 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(package private) static 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.private static XmlCharTypes
sAsciiCharTypes
private static XmlCharTypes
sLatin1CharTypes
private static XmlCharTypes
sUtf8CharTypes
-
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 Constructor Description OutputCharTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlCharTypes
getAsciiCharTypes()
static XmlCharTypes
getLatin1CharTypes()
static XmlCharTypes
getUtf8CharTypes()
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 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_MUST_QUOTE
public static final int CT_OUTPUT_MUST_QUOTE
- 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
-
CT_OUTPUT_NAME_ANY_MB2
public static final int CT_OUTPUT_NAME_ANY_MB2
- See Also:
- Constant Field Values
-
sAsciiCharTypes
private static XmlCharTypes sAsciiCharTypes
-
sLatin1CharTypes
private static XmlCharTypes sLatin1CharTypes
-
sUtf8CharTypes
private static final XmlCharTypes sUtf8CharTypes
-
-
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)
-
-