public class PropertyManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Properties |
properties |
| Constructor and Description |
|---|
PropertyManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeProperty(java.lang.String key,
java.lang.String val)
Change property by given key to given value
|
java.lang.String |
getProperty(java.lang.String key)
Get a property by given key
|
void |
readProperties()
Initialize the properties by reading them
|
public void readProperties()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getProperty(java.lang.String key)
key - used to get a valuepublic void changeProperty(java.lang.String key,
java.lang.String val)
throws java.lang.IllegalArgumentException
key - which key you want to editval - to change given value of keyjava.lang.IllegalArgumentException - if key doesn't exist