java.io.Serializable
, Comparable<JsonEscapeType>
public enum JsonEscapeType extends Enum<JsonEscapeType>
Types of escape operations to be performed on JSON text:
JsonEscapeLevel
). For escaped characters that do
not have an associated SEC, default to using \uFFFF Hexadecimal Escapes.
For further information, see the Glossary and the References sections at the
documentation for the JsonEscape
class.
Enum Constant | Description |
---|---|
SINGLE_ESCAPE_CHARS_DEFAULT_TO_UHEXA |
Use Single Escape Chars if possible, default to \uFFFF hexadecimal escapes.
|
UHEXA |
Always use \uFFFF hexadecimal escapes.
|
Modifier and Type | Method | Description |
---|---|---|
static JsonEscapeType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static JsonEscapeType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonEscapeType SINGLE_ESCAPE_CHARS_DEFAULT_TO_UHEXA
public static final JsonEscapeType UHEXA
public static JsonEscapeType[] values()
for (JsonEscapeType c : JsonEscapeType.values()) System.out.println(c);
public static JsonEscapeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018 The UNBESCAPE team. All rights reserved.