public enum StringEscapePolicy extends Enum<StringEscapePolicy>
StringEscapePolicy lists all acceptable JSON string escape policy of
the JsonFlattener.| Enum Constant and Description |
|---|
ALL_UNICODES
Escapes JSON special characters and Unicode characters.
|
NORMAL
Escapes JSON special characters.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.lang3.text.translate.CharSequenceTranslator |
getCharSequenceTranslator() |
static StringEscapePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringEscapePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringEscapePolicy NORMAL
public static final StringEscapePolicy ALL_UNICODES
public static StringEscapePolicy[] values()
for (StringEscapePolicy c : StringEscapePolicy.values()) System.out.println(c);
public static StringEscapePolicy 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 nullpublic org.apache.commons.lang3.text.translate.CharSequenceTranslator getCharSequenceTranslator()
Copyright © 2017. All rights reserved.