| Modifier and Type | Class and Description |
|---|---|
| private static class | CharTypes.
Helper used for lazy initialization of alternative escape (quoting) table, used for escaping content that uses non-standard quote character (usually apostrophe). |
| Modifier and Type | Field and Description |
|---|---|
| protected static final byte[] | |
| protected static final byte[] | |
| protected static final char[] | |
| protected static final char[] | |
| protected static final int[] | sHexValues
Lookup table for the first 256 Unicode characters (ASCII / UTF-8) range. |
| protected static final int[] | sInputCodes
Lookup table used for determining which input characters need special handling when contained in text segment. |
| protected static final int[] | sInputCodesComment
Decoding table used to quickly determine characters that are relevant within comment content. |
| protected static final int[] | sInputCodesJsNames
To support non-default (and -standard) unquoted field names mode, need to have alternate checking. |
| protected static final int[] | sInputCodesUTF8
Additionally we can combine UTF-8 decoding info into similar data table. |
| protected static final int[] | sInputCodesUtf8JsNames
This table is similar to Latin-1, except that it marks all "high-bit" code as ok. |
| protected static final int[] | sInputCodesWS
Decoding table used for skipping white space and comments. |
| protected static final int[] | sOutputEscapes128
Lookup table used for determining which output characters in 7-bit ASCII range need to be quoted. |
| protected static final int[] | sOutputEscapes128WithSlash
Lookup table same as |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | appendQuoted(StringBuilder
Buffer to append escaped contents in sb, String Unescaped String value to append with escaping applied content)Helper method for appending JSON-escaped version of contents
into specific |
| public static int | |
| public static byte[] | Returns: Copy of array of 16 upper-case hexadecimal characters as bytes
Deprecated
Since 2.14 Use
copyHexBytes(boolean) instead
|
| public static byte[] | |
| public static char[] | Returns: Copy of array of 16 upper-case hexadecimal characters
Deprecated
Since 2.14 Use
copyHexChars(boolean) instead
|
| public static char[] | |
| public static int[] | Returns: 128-entryint[] that contains escape definitionsAccessor for getting a read-only encoding table for first 128 Unicode code points (single-byte UTF-8 characters). |
| public static int[] | Returns: 128-entryint[] that contains escape definitionsCharacter used for quoting textual values and property names;
usually double-quote but sometimes changed to single-quote (apostrophe) quoteChar)Alternative to |
| public static int[] | Returns: 128-entryint[] that contains escape definitionsCharacter used for quoting textual values and property names;
usually double-quote but sometimes changed to single-quote (apostrophe) quoteChar, boolean escapeSlash)Alternative to |
| public static int[] | |
| public static int[] | |
| public static int[] | |
| public static int[] | |
| public static int[] | |
| public static int[] | |
| public static char |
| HB | back to summary |
|---|---|
| protected static final byte[] HB | |
| HBlower | back to summary |
|---|---|
| protected static final byte[] HBlower | |
| HC | back to summary |
|---|---|
| protected static final char[] HC | |
| HClower | back to summary |
|---|---|
| protected static final char[] HClower | |
| sHexValues | back to summary |
|---|---|
| protected static final int[] sHexValues Lookup table for the first 256 Unicode characters (ASCII / UTF-8) range. For actual hex digits, contains corresponding value; for others -1. Note before 2.10.1, was of size 128, extended for simpler handling | |
| sInputCodes | back to summary |
|---|---|
| protected static final int[] sInputCodes Lookup table used for determining which input characters need special handling when contained in text segment. | |
| sInputCodesComment | back to summary |
|---|---|
| protected static final int[] sInputCodesComment Decoding table used to quickly determine characters that are relevant within comment content. | |
| sInputCodesJsNames | back to summary |
|---|---|
| protected static final int[] sInputCodesJsNames To support non-default (and -standard) unquoted field names mode, need to have alternate checking. Basically this is list of 8-bit ASCII characters that are legal as part of Javascript identifier | |
| sInputCodesUTF8 | back to summary |
|---|---|
| protected static final int[] sInputCodesUTF8 Additionally we can combine UTF-8 decoding info into similar data table. | |
| sInputCodesUtf8JsNames | back to summary |
|---|---|
| protected static final int[] sInputCodesUtf8JsNames This table is similar to Latin-1, except that it marks all "high-bit" code as ok. They will be validated at a later point, when decoding name | |
| sInputCodesWS | back to summary |
|---|---|
| protected static final int[] sInputCodesWS Decoding table used for skipping white space and comments.
| |
| sOutputEscapes128 | back to summary |
|---|---|
| protected static final int[] sOutputEscapes128 Lookup table used for determining which output characters in 7-bit ASCII range need to be quoted. | |
| sOutputEscapes128WithSlash | back to summary |
|---|---|
| protected static final int[] sOutputEscapes128WithSlash Lookup table same as | |
| CharTypes | back to summary |
|---|---|
| public CharTypes() | |
| appendQuoted | back to summary |
|---|---|
| public static void appendQuoted(StringBuilder sb, String content) Helper method for appending JSON-escaped version of contents
into specific
| |
| charToHex | back to summary |
|---|---|
| public static int charToHex(int ch) | |
| copyHexBytes | back to summary |
|---|---|
| public static byte[] copyHexBytes()
Deprecated Since 2.14 Use
| |
| copyHexBytes | back to summary |
|---|---|
| public static byte[] copyHexBytes(boolean uppercase) | |
| copyHexChars | back to summary |
|---|---|
| public static char[] copyHexChars()
Deprecated Since 2.14 Use
| |
| copyHexChars | back to summary |
|---|---|
| public static char[] copyHexChars(boolean uppercase) | |
| get7BitOutputEscapes | back to summary |
|---|---|
| public static int[] get7BitOutputEscapes() Accessor for getting a read-only encoding table for first 128 Unicode code points (single-byte UTF-8 characters). Value of 0 means "no escaping"; other positive values that value is character to use after backslash; and negative values that generic (backslash - u) escaping is to be used.
| |
| get7BitOutputEscapes | back to summary |
|---|---|
| public static int[] get7BitOutputEscapes(int quoteChar) Alternative to
| |
| get7BitOutputEscapes | back to summary |
|---|---|
| public static int[] get7BitOutputEscapes(int quoteChar, boolean escapeSlash) Alternative to
| |
| getInputCodeComment | back to summary |
|---|---|
| public static int[] getInputCodeComment() | |
| getInputCodeLatin1 | back to summary |
|---|---|
| public static int[] getInputCodeLatin1() | |
| getInputCodeLatin1JsNames | back to summary |
|---|---|
| public static int[] getInputCodeLatin1JsNames() | |
| getInputCodeUtf8 | back to summary |
|---|---|
| public static int[] getInputCodeUtf8() | |
| getInputCodeUtf8JsNames | back to summary |
|---|---|
| public static int[] getInputCodeUtf8JsNames() | |
| getInputCodeWS | back to summary |
|---|---|
| public static int[] getInputCodeWS() | |
| hexToChar | back to summary |
|---|---|
| public static char hexToChar(int ch) | |
| Modifier and Type | Field and Description |
|---|---|
| private int[][] | |
| private int[][] | |
| public static final CharTypes. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int[] | |
| public int[] |
| _altEscapes | back to summary |
|---|---|
| private int[][] _altEscapes | |
| _altEscapesWithSlash | back to summary |
|---|---|
| private int[][] _altEscapesWithSlash | |
| instance | back to summary |
|---|---|
| public static final CharTypes. | |
| AltEscapes | back to summary |
|---|---|
| private AltEscapes() | |
| escapesFor | back to summary |
|---|---|
| public int[] escapesFor(int quoteChar) | |
| escapesFor | back to summary |
|---|---|
| public int[] escapesFor(int quoteChar, boolean escapeSlash) | |