|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.util.Properties
The Properties class represents a persistent set of properties.
| Field Summary | |
private java.lang.String |
propertyFilename
|
private java.util.Properties |
props
The main property list. |
| Constructor Summary | |
Properties()
Creates a property list with the keys of the property file "zeta_tools.cfg." |
|
Properties(java.lang.String propertyFilename)
Creates a property list with the keys of the specified property file. |
|
| Method Summary | |
java.lang.String |
get(java.lang.String key)
Searches for the property with the specified key in this property list. |
int |
get(java.lang.String key,
int defaultValue)
Searches for the property with the specified key in this property list. |
java.lang.String |
get(java.lang.String key,
java.lang.String defaultValue)
Searches for the property with the specified key in this property list. |
void |
load()
Loads the property file. |
void |
reload()
Reloads the property file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String propertyFilename
private java.util.Properties props
| Constructor Detail |
public Properties()
throws java.io.IOException
public Properties(java.lang.String propertyFilename)
throws java.io.IOException
| Method Detail |
public void reload()
throws java.io.IOException
java.io.IOException
public void load()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String get(java.lang.String key)
null if the property is not found.
key - the property key.
public java.lang.String get(java.lang.String key,
java.lang.String defaultValue)
key - the property key.defaultValue - a default value.
public int get(java.lang.String key,
int defaultValue)
key - the property key.defaultValue - a default value.
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||