java.io.Serializable, Comparable<PropertiesKeyEscapeLevel>public enum PropertiesKeyEscapeLevel extends Enum<PropertiesKeyEscapeLevel>
Levels defined for Java Properties escape/unescape operations:
For further information, see the Glossary and the References sections at the
documentation for the PropertiesEscape class.
| Enum Constant | Description |
|---|---|
LEVEL_1_BASIC_ESCAPE_SET |
Level 1 escape: escape only the basic escape set: Single Escape Chars plus non-displayable control chars.
|
LEVEL_2_ALL_NON_ASCII_PLUS_BASIC_ESCAPE_SET |
Level 2 escape: escape the basic escape set plus all non-ASCII characters (result will always be ASCII).
|
LEVEL_3_ALL_NON_ALPHANUMERIC |
Level 3 escape: escape all non-alphanumeric characteres (escape all but those in the
A-Z, a-z and 0-9 ranges).
|
LEVEL_4_ALL_CHARACTERS |
Level 4 escape: escape all characters, including alphanumeric.
|
| Modifier and Type | Method | Description |
|---|---|---|
static PropertiesKeyEscapeLevel |
forLevel(int level) |
Utility method for obtaining an enum value from its corresponding int level value.
|
int |
getEscapeLevel() |
Return the int escape level.
|
static PropertiesKeyEscapeLevel |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static PropertiesKeyEscapeLevel[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertiesKeyEscapeLevel LEVEL_1_BASIC_ESCAPE_SET
public static final PropertiesKeyEscapeLevel LEVEL_2_ALL_NON_ASCII_PLUS_BASIC_ESCAPE_SET
public static final PropertiesKeyEscapeLevel LEVEL_3_ALL_NON_ALPHANUMERIC
public static final PropertiesKeyEscapeLevel LEVEL_4_ALL_CHARACTERS
public static PropertiesKeyEscapeLevel[] values()
for (PropertiesKeyEscapeLevel c : PropertiesKeyEscapeLevel.values()) System.out.println(c);
public static PropertiesKeyEscapeLevel 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 PropertiesKeyEscapeLevel forLevel(int level)
Utility method for obtaining an enum value from its corresponding int level value.
level - the levelpublic int getEscapeLevel()
Copyright © 2018 The UNBESCAPE team. All rights reserved.