public static enum PropertiesLoader.FileLocation extends Enum<PropertiesLoader.FileLocation>
| Enum Constant and Description |
|---|
CLASSPATH
Classpath.
|
FILESYSTEM
File system.
|
| Modifier and Type | Method and Description |
|---|---|
static PropertiesLoader.FileLocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertiesLoader.FileLocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertiesLoader.FileLocation FILESYSTEM
public static final PropertiesLoader.FileLocation CLASSPATH
The file is opened by PropertiesLoader.class.getResourceAsString(file).
If the file name given to a load method does not
start with "/", "/" is prepended.
public static PropertiesLoader.FileLocation[] values()
for (PropertiesLoader.FileLocation c : PropertiesLoader.FileLocation.values()) System.out.println(c);
public static PropertiesLoader.FileLocation 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 nullCopyright © 2017. All rights reserved.