Enum EncodingPatternConverter.EscapeFormat
java.lang.Object
java.lang.Enum<EncodingPatternConverter.EscapeFormat>
org.apache.logging.log4j.core.pattern.EncodingPatternConverter.EscapeFormat
- All Implemented Interfaces:
Serializable
,Comparable<EncodingPatternConverter.EscapeFormat>
,java.lang.constant.Constable
- Enclosing class:
EncodingPatternConverter
private static enum EncodingPatternConverter.EscapeFormat
extends Enum<EncodingPatternConverter.EscapeFormat>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
escape
(StringBuilder toAppendTo, int start) Escapes text using a standardized format from a given starting point to the end of the string.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HTML
-
JSON
JSON string escaping as defined in RFC 4627.- See Also:
-
CRLF
-
XML
XML string escaping as defined in XML specification.- See Also:
-
-
Constructor Details
-
EscapeFormat
private EscapeFormat()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
escape
Escapes text using a standardized format from a given starting point to the end of the string.- Parameters:
toAppendTo
- string buffer to escapestart
- where to start escaping from
-