Package org.djutils.io
Enum Class ResourceResolver.ResourceHandle.Kind
java.lang.Object
java.lang.Enum<ResourceResolver.ResourceHandle.Kind>
org.djutils.io.ResourceResolver.ResourceHandle.Kind
- All Implemented Interfaces:
Serializable,Comparable<ResourceResolver.ResourceHandle.Kind>,Constable
- Enclosing class:
- ResourceResolver.ResourceHandle
Enum for the kind of resource handle: file, JAR entry, HTTP resource, or generic URL.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFile via the local file system, but not a JAR entry.Any other type of URL that might point to the resource.File on the Internet that can be retrieved via the http(s) protocol.Entry within a JAR file, typically indicated with a "! -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ResourceResolver.ResourceHandle.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILE
File via the local file system, but not a JAR entry. -
JAR_ENTRY
Entry within a JAR file, typically indicated with a "!/" inside the string. -
HTTP
File on the Internet that can be retrieved via the http(s) protocol. -
GENERIC_URL
Any other type of URL that might point to the resource.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-