static enum JavaScriptEncoder.Mode extends java.lang.Enum<JavaScriptEncoder.Mode>
Enum Constant and Description |
---|
ATTRIBUTE
Encoding for use in HTML attributes.
|
BLOCK
Encoding for use in HTML script blocks.
|
HTML
Encodes for use in either HTML script attributes or blocks.
|
SOURCE
Standard encoding of JavaScript Strings.
|
Modifier and Type | Method and Description |
---|---|
static JavaScriptEncoder.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaScriptEncoder.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaScriptEncoder.Mode SOURCE
public static final JavaScriptEncoder.Mode ATTRIBUTE
public static final JavaScriptEncoder.Mode BLOCK
public static final JavaScriptEncoder.Mode HTML
public static JavaScriptEncoder.Mode[] values()
for (JavaScriptEncoder.Mode c : JavaScriptEncoder.Mode.values()) System.out.println(c);
public static JavaScriptEncoder.Mode 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 null