swpchat.client
Class SWPConfig
java.lang.Object
|
+--swpchat.client.SWPConfig
- Direct Known Subclasses:
- AudioMapper, ContactsMapper, StartTipFileReader, SWPOptions, UserInfoPersistentDataHandler
- public abstract class SWPConfig
- extends java.lang.Object
This class encapsulates the properties of the SWP Chat client.
To access the properties in a specific manner, create a subclass.
- Version:
- 1.1
- Author:
- Frese, Kesseler, Stinauer, Omeyer
Field Summary |
private static java.lang.String |
CLS
|
private static java.lang.String |
PKConfigFileName
The key into the system properties |
protected static java.util.Properties |
swpProps
|
Method Summary |
private static java.lang.String |
getConfigFileName()
Returns a config file name for chat properties |
private static java.util.Properties |
getStoredProperties()
load default properties from getConfigFileName() After a call
to this method swpProps is initialized, but may be
empty. |
static java.util.Enumeration |
propertyKeys()
the keys stored in swpProps are returned as an Enumeration |
protected static void |
save()
store properties to configFile |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
CLS
private static final java.lang.String CLS
PKConfigFileName
private static final java.lang.String PKConfigFileName
- The key into the system properties
swpProps
protected static java.util.Properties swpProps
SWPConfig
public SWPConfig()
save
protected static void save()
- store properties to configFile
Call this method from subclasses to store the properties.
getStoredProperties
private static java.util.Properties getStoredProperties()
- load default properties from getConfigFileName() After a call
to this method
swpProps
is initialized, but may be
empty.
- Returns:
- Properties read from the file
getConfigFileName
private static java.lang.String getConfigFileName()
- Returns a config file name for chat properties
- Returns:
- the filename where the Properties are stored
propertyKeys
public static java.util.Enumeration propertyKeys()
- the keys stored in swpProps are returned as an Enumeration
- Returns:
- all keys of the swpProps as an Enumeration