public class PropertiesFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Properties |
properties |
Constructor and Description |
---|
PropertiesFile() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this hashtable.
|
java.lang.String |
getProperty(java.lang.String property) |
void |
loadInputStream(java.lang.String srcFile)
External.
|
void |
loadResourceAsStream(java.lang.String srcFile)
Internal.
|
void |
setProperties(java.util.Properties properties) |
public final void loadInputStream(java.lang.String srcFile) throws java.io.IOException
srcFile
- the srcFile to loadjava.io.IOException
- exceptionpublic final void loadResourceAsStream(java.lang.String srcFile) throws java.io.IOException
srcFile
- the srcFile to loadjava.io.IOException
- exceptionpublic final void setProperties(java.util.Properties properties)
properties
- the properties to setpublic final java.lang.String getProperty(java.lang.String property)
property
- the property to getpublic final void clear()