Package org.apache.johnzon.core
Class Strings
- java.lang.Object
-
- org.apache.johnzon.core.Strings
-
-
Field Summary
Fields Modifier and Type Field Description private static ConcurrentMap<Character,String>
UNICODE_CACHE
private static String
UNICODE_PREFIX
private static String
UNICODE_PREFIX_HELPER
-
Fields inherited from interface org.apache.johnzon.core.JsonChars
BACKSPACE, COMMA_CHAR, COMMA_EVENT, CR, DOT, END_ARRAY, END_ARRAY_CHAR, END_OBJECT, END_OBJECT_CHAR, EOF, EOL, ESCAPE_CHAR, EVT_MAP, EXP_LOWERCASE, EXP_UPPERCASE, FALSE_A, FALSE_E, FALSE_F, FALSE_L, FALSE_S, FORMFEED, KEY_NAME, KEY_SEPARATOR, KEY_SEPARATOR_EVENT, MINUS, NINE, NULL, NULL_L, NULL_N, NULL_U, PLUS, QUOTE_CHAR, SPACE, START_ARRAY, START_ARRAY_CHAR, START_OBJECT, START_OBJECT_CHAR, TAB, TRUE_E, TRUE_R, TRUE_T, TRUE_U, VALUE_FALSE, VALUE_NULL, VALUE_NUMBER, VALUE_STRING, VALUE_TRUE, ZERO
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Strings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static void
appendEscaped(String value, StringBuilder builder)
(package private) static char
asEscapedChar(char current)
private static String
toUnicode(char c)
-
-
-
Field Detail
-
UNICODE_PREFIX
private static final String UNICODE_PREFIX
- See Also:
- Constant Field Values
-
UNICODE_PREFIX_HELPER
private static final String UNICODE_PREFIX_HELPER
- See Also:
- Constant Field Values
-
UNICODE_CACHE
private static final ConcurrentMap<Character,String> UNICODE_CACHE
-
-
Method Detail
-
asEscapedChar
static char asEscapedChar(char current)
-
appendEscaped
static void appendEscaped(String value, StringBuilder builder)
-
toUnicode
private static String toUnicode(char c)
-
-