public class PropertyFileConfiguration extends HierarchicalConfiguration
Constructor and Description |
---|
PropertyFileConfiguration()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
load(java.io.InputStream in)
Loads the properties stored in the given file.
|
void |
load(java.lang.String resourceName)
Lods the property file from a classpath resource name.
|
void |
load(java.lang.String resourceName,
java.lang.Class resourceSource)
Loads the properties stored in the given file.
|
clone, findPropertyKeys, getConfigProperties, getConfigProperty, getConfigProperty, insertConfiguration, isLocallyDefined, setConfigProperty
public PropertyFileConfiguration()
public void load(java.lang.String resourceName)
PropertyFileConfiguration.class.getResource(..)
resourceName
- the resource name to be loaded.public void load(java.lang.String resourceName, java.lang.Class resourceSource)
resourceName
- the file name of the stored properties.resourceSource
- the class to which relative resource paths are resolved.public void load(java.io.InputStream in)
in
- the input stream used to read the properties.