Top Fields Constructors Methods
com.fasterxml.aalto.out

public final Class OutputCharTypes

extends XmlCharTypes
Class Inheritance
Imports
com.fasterxml.aalto.util.XmlCharTypes, .XmlChars

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
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

pack-priv 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.

private static XmlCharTypes
private static XmlCharTypes
private static final XmlCharTypes
Inherited from com.fasterxml.aalto.util.XmlCharTypes:
ATTR_CHARSCT_AMPCT_ATTR_QUOTECT_DTD_GTCT_DTD_LTCT_DTD_PERCENTCT_DTD_QUOTECT_DTD_RBRACKETCT_GTCT_HYPHENCT_INVALIDCT_LBRACKETCT_LTCT_MULTIBYTE_2CT_MULTIBYTE_3CT_MULTIBYTE_4CT_MULTIBYTE_NCT_NAME_ANYCT_NAME_COLONCT_NAME_NONECT_NAME_NONFIRSTCT_OKCT_QMARKCT_RBRACKETCT_WS_CRCT_WS_LFCT_WS_TABDTD_CHARSNAME_CHARSOTHER_CHARSPUBID_CHARSPUBID_INVALIDPUBID_OKTEXT_CHARS

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final XmlCharTypes
public static final XmlCharTypes
public 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)

Inherited from com.fasterxml.aalto.util.XmlCharTypes:
fillIn8BitAttrRangefillIn8BitDtdRangefillIn8BitNameRangefillIn8BitTextRangefillInLatin1Chars

Field Detail

CT_OUTPUT_MUST_QUOTEback to summary
public static final int CT_OUTPUT_MUST_QUOTE
CT_OUTPUT_NAME_ANY_MB2back to summary
public static final int CT_OUTPUT_NAME_ANY_MB2
CT_OUTPUT_NAME_NONFIRST_MB2back to summary
public static final int CT_OUTPUT_NAME_NONFIRST_MB2
CT_OUTPUT_NAME_UNENCODABLEback to summary
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

MAIN_TABLE_SIZEback to summary
pack-priv 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.

sAsciiCharTypesback to summary
private static XmlCharTypes sAsciiCharTypes
sLatin1CharTypesback to summary
private static XmlCharTypes sLatin1CharTypes
sUtf8CharTypesback to summary
private static final XmlCharTypes sUtf8CharTypes

Constructor Detail

OutputCharTypesback to summary
public OutputCharTypes()

Method Detail

getAsciiCharTypesback to summary
public static final XmlCharTypes getAsciiCharTypes()
getLatin1CharTypesback to summary
public static final XmlCharTypes getLatin1CharTypes()
getUtf8CharTypesback to summary
public static final XmlCharTypes getUtf8CharTypes()
modifyAsciiNamesback to summary
private static void modifyAsciiNames(int[] charTable)
modifyForAsciiback to summary
private static void modifyForAscii(int[] charTable)
modifyForAttrWriteback to summary
private static void modifyForAttrWrite(int[] charTable)
modifyForLatin1back to summary
private static void modifyForLatin1(int[] charTable)
modifyForUtf8back to summary
private static void modifyForUtf8(int[] charTable)
modifyLatin1Namesback to summary
private static void modifyLatin1Names(int[] charTable)
modifyUtf8Namesback to summary
private static void modifyUtf8Names(int[] charTable)
requireQuotingAfterback to summary
private static void requireQuotingAfter(int[] charTable, int lastValid)