public enum EscapeStrategy extends Enum<EscapeStrategy>
Enum Constant and Description |
---|
DEFAULT |
NON_ASCII_CHARS_ONLY |
OCTET_STRING |
Modifier and Type | Method and Description |
---|---|
protected void |
appendByte(byte b,
StringBuilder output) |
abstract String |
escape(String input) |
static String |
escapeHex(byte[] bytes) |
static EscapeStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EscapeStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EscapeStrategy NON_ASCII_CHARS_ONLY
public static final EscapeStrategy DEFAULT
public static final EscapeStrategy OCTET_STRING
public static EscapeStrategy[] values()
for (EscapeStrategy c : EscapeStrategy.values()) System.out.println(c);
public static EscapeStrategy 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 static String escapeHex(byte[] bytes)
protected void appendByte(byte b, StringBuilder output)
Copyright © 2020 JBoss by Red Hat. All rights reserved.