public enum URLProtocol extends Enum<URLProtocol>
Enum Constant and Description |
---|
CLASSPATH |
FILE |
HTTP |
HTTPS |
JAVA |
NO_PROTOCOL |
RESOURCE |
Modifier and Type | Method and Description |
---|---|
static URLProtocol |
fromString(String input) |
String |
getProtocol() |
static URLProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static URLProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final URLProtocol FILE
public static final URLProtocol RESOURCE
public static final URLProtocol JAVA
public static final URLProtocol CLASSPATH
public static final URLProtocol HTTP
public static final URLProtocol HTTPS
public static final URLProtocol NO_PROTOCOL
public static URLProtocol[] values()
for (URLProtocol c : URLProtocol.values()) System.out.println(c);
public static URLProtocol 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 String getProtocol()
public static URLProtocol fromString(String input)
Copyright © 2022. All rights reserved.