static enum CSSEncoder.Mode extends java.lang.Enum<CSSEncoder.Mode>
Enum Constant and Description |
---|
STRING
String contexts.
|
URL
URL context.
|
Modifier and Type | Field and Description |
---|---|
private long |
_highMask
High bit-mask of unescaped characters.
|
private long |
_lowMask
Low bit-mask of unescaped characters.
|
Modifier and Type | Method and Description |
---|---|
(package private) long |
highMask()
Accessor for _highMask.
|
(package private) long |
lowMask()
Accessor for _lowMask.
|
static CSSEncoder.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CSSEncoder.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CSSEncoder.Mode STRING
Not allowed: \n \r \f \\ " ' (everything else is allowed) Allows: "\\{nl}" (escaped newline)
public static final CSSEncoder.Mode URL
Allowed: [!#$%&*-\[\]-~]|{nonascii}|{escape} Escapes: \\[0-9a-f]{1,6}(\s?) \\[^\n\r\f0-9a-f]
private final long _lowMask
private final long _highMask
public static CSSEncoder.Mode[] values()
for (CSSEncoder.Mode c : CSSEncoder.Mode.values()) System.out.println(c);
public static CSSEncoder.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 nulllong lowMask()
long highMask()