lp.ui
Class ConfigManager
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
lp.ui.ConfigManager
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public class ConfigManager
- extends Properties
Manages configuration options.
- Version:
- 0.9.0
- Author:
- Martin Slota
- See Also:
- Serialized Form
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values |
SEP
private static final char SEP
CONFIG_NAME
public static final String CONFIG_NAME
USER_CONFIG
public static final File USER_CONFIG
CURRENT_DIR_CONFIG
public static final File CURRENT_DIR_CONFIG
ConfigManager
public ConfigManager()
loadConfig
public void loadConfig(File configFile)
throws IOException
- Throws:
IOException
loadConfig
public void loadConfig(String configFilename)
throws IOException
- Throws:
IOException
loadUserConfig
public void loadUserConfig()
throws IOException
- Throws:
IOException
loadCurrentDirConfig
public void loadCurrentDirConfig()
throws IOException
- Throws:
IOException
saveConfig
public void saveConfig(File configFile)
throws IOException
- Throws:
IOException
saveConfig
public void saveConfig(String configFilename)
throws IOException
- Throws:
IOException
sortedPropertyNames
public SortedSet<String> sortedPropertyNames()
toString
public String toString()
- Overrides:
toString
in class Hashtable<Object,Object>