public static enum Resource.Source extends java.lang.Enum<Resource.Source>
Resource.| Enum Constant | Description |
|---|---|
BINARY_CONTENT |
Resource was created with binary content.
|
CLASSPATH |
Resource was loaded from classpath.
|
CONTENT |
Resource was created with string content.
|
FILE |
Resource was loaded from a file.
|
UNKNOWN |
Resource was created with an input stream without knowledge of type.
|
URL |
Resource was loaded from URL.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Resource.Source |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Resource.Source[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resource.Source FILE
public static final Resource.Source CLASSPATH
public static final Resource.Source URL
public static final Resource.Source CONTENT
public static final Resource.Source BINARY_CONTENT
public static final Resource.Source UNKNOWN
public static Resource.Source[] values()
for (Resource.Source c : Resource.Source.values()) System.out.println(c);
public static Resource.Source 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 nullCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.