private static enum EncodingPatternConverter.EscapeFormat extends java.lang.Enum<EncodingPatternConverter.EscapeFormat>
Enum Constant and Description |
---|
CRLF |
HTML |
JSON
JSON string escaping as defined in RFC 4627.
|
XML
XML string escaping as defined in XML specification.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
escape(java.lang.StringBuilder toAppendTo,
int start)
Escapes text using a standardized format from a given starting point to the end of the string.
|
static EncodingPatternConverter.EscapeFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EncodingPatternConverter.EscapeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodingPatternConverter.EscapeFormat HTML
public static final EncodingPatternConverter.EscapeFormat JSON
public static final EncodingPatternConverter.EscapeFormat CRLF
public static final EncodingPatternConverter.EscapeFormat XML
public static EncodingPatternConverter.EscapeFormat[] values()
for (EncodingPatternConverter.EscapeFormat c : EncodingPatternConverter.EscapeFormat.values()) System.out.println(c);
public static EncodingPatternConverter.EscapeFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullabstract void escape(java.lang.StringBuilder toAppendTo, int start)
toAppendTo
- string buffer to escapestart
- where to start escaping from