|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectshared.Config
This class makes all the configuration options available to all the other classes and objects of this program. Its reading and writing back the values from and to the config.txt file.
| Field Summary | |
static java.lang.String |
VERSION
|
| Constructor Summary | |
Config()
|
|
| Method Summary | |
static boolean |
getBooleanValue(java.lang.String sKey)
This method returns a specific boolean config value. |
static int |
getIntValue(java.lang.String sKey)
This method returns a specific integer config value. |
static java.util.Set |
getKeySet()
This method returns a set of keys of the config hash map. |
static java.net.InetAddress |
getServerAddress()
This method returns the inet address of the calendar server. |
static java.lang.String[] |
getSortedKeyArray()
This method returns a sorted String array of all available config keys. |
static java.lang.String |
getStringValue(java.lang.String sKey)
This method returns a specific string config value. |
static void |
initialize(java.lang.String[] args)
Initializes all the config values. |
static void |
readConfig(java.lang.String sConfigFile)
This methods reads the options from the calendar config file 'config.txt'. |
static void |
setValue(java.lang.String sKey,
java.lang.String sVal)
This method changes or adds a specific config value. |
static void |
writeConfigToFile()
This method writes the current configuration to the config file "config.txt". |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSION
| Constructor Detail |
public Config()
| Method Detail |
public static void initialize(java.lang.String[] args)
args - The start parameters.public static void readConfig(java.lang.String sConfigFile)
sConfigFile - Specifies the relative or absolute path to the config file.public static java.net.InetAddress getServerAddress()
public static java.lang.String getStringValue(java.lang.String sKey)
sKey - Specifies the key of the config value to return.
public static int getIntValue(java.lang.String sKey)
sKey - Specifies the key of the config value to return.
public static boolean getBooleanValue(java.lang.String sKey)
sKey - Specifies the key of the config value to return.
public static java.util.Set getKeySet()
public static void setValue(java.lang.String sKey,
java.lang.String sVal)
sKey - Specifies the config key to set or update.sVal - Specifies the value of the key to set or update.public static java.lang.String[] getSortedKeyArray()
public static void writeConfigToFile()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||