Class StringOutputUtil
- java.lang.Object
-
- com.fasterxml.jackson.dataformat.toml.StringOutputUtil
-
class StringOutputUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
ASCII_ONLY
static int
BASIC_STRING
static int
BASIC_STRING_NO_ESCAPE
private static int
EMPTY_STRING_CATS
static int
LITERAL_STRING
static int
MASK_SIMPLE_KEY
static int
MASK_STRING
static int
UNQUOTED_KEY
-
Constructor Summary
Constructors Constructor Description StringOutputUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static int
categorize(char[] text, int offset, int len)
(package private) static int
categorize(int c)
(package private) static int
categorize(java.lang.String s)
(package private) static java.lang.String
getBasicStringEscape(char c)
Get the basic string escape sequence for a character, ornull
if the character does not need to be escaped.
-
-
-
Field Detail
-
UNQUOTED_KEY
public static final int UNQUOTED_KEY
- See Also:
- Constant Field Values
-
LITERAL_STRING
public static final int LITERAL_STRING
- See Also:
- Constant Field Values
-
BASIC_STRING
public static final int BASIC_STRING
- See Also:
- Constant Field Values
-
BASIC_STRING_NO_ESCAPE
public static final int BASIC_STRING_NO_ESCAPE
- See Also:
- Constant Field Values
-
ASCII_ONLY
public static final int ASCII_ONLY
- See Also:
- Constant Field Values
-
EMPTY_STRING_CATS
private static final int EMPTY_STRING_CATS
- See Also:
- Constant Field Values
-
MASK_SIMPLE_KEY
public static final int MASK_SIMPLE_KEY
- See Also:
- Constant Field Values
-
MASK_STRING
public static final int MASK_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
categorize
static int categorize(java.lang.String s)
-
categorize
static int categorize(char[] text, int offset, int len)
-
categorize
static int categorize(int c)
-
getBasicStringEscape
static java.lang.String getBasicStringEscape(char c)
Get the basic string escape sequence for a character, ornull
if the character does not need to be escaped.
-
-