public static enum URL.Separator extends java.lang.Enum<URL.Separator>
Recommended separators are defined by HTML 4.01 Specification: application/x-www-form-urlencoded and HTML 4.01 Specification: Ampersands in URI attribute values.
All separators are recognised when parsing query strings.
One separator may be passed to toString and
apply when outputting query strings.
| Enum Constant and Description |
|---|
AMPERSAND
An ampersand
& - the separator recommended by HTML 4.01 Specification: application/x-www-form-urlencoded. |
SEMICOLON
A semicolon
; - the separator recommended by HTML
4.01 Specification: Ampersands in URI attribute values. |
| Modifier and Type | Method and Description |
|---|---|
static URL.Separator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static URL.Separator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final URL.Separator AMPERSAND
& - the separator recommended by HTML 4.01 Specification: application/x-www-form-urlencoded.public static final URL.Separator SEMICOLON
; - the separator recommended by HTML
4.01 Specification: Ampersands in URI attribute values.public static URL.Separator[] values()
for (URL.Separator c : URL.Separator.values()) System.out.println(c);
public static URL.Separator 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