martin.common
Class Properties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
martin.common.Properties
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
public class Properties
- extends java.util.Properties
Extended version of they java.util.Properties class.
- Author:
- Martin
- See Also:
- Serialized Form
Fields inherited from class java.util.Properties |
defaults |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
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, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
Properties
public Properties()
Properties
public Properties(Properties defaults)
getBooleanProperty
public boolean getBooleanProperty(java.lang.String key)
getBooleanProperty
public boolean getBooleanProperty(java.lang.String key,
boolean defaultvalue)
setBooleanProperty
public java.lang.Object setBooleanProperty(java.lang.String key,
boolean value)
getIntegerProperty
public int getIntegerProperty(java.lang.String key)
getIntegerProperty
public int getIntegerProperty(java.lang.String key,
int defaultvalue)
setIntegerProperty
public java.lang.Object setIntegerProperty(java.lang.String key,
int value)
getDoubleProperty
public double getDoubleProperty(java.lang.String key)
getIntegerProperty
public double getIntegerProperty(java.lang.String key,
double defaultvalue)
setDoubleProperty
public java.lang.Object setDoubleProperty(java.lang.String key,
double value)
load
public static Properties load(java.lang.String filename)
load
public static Properties load(java.lang.String filename,
Properties defaultProperties)
load
public static Properties load(java.io.InputStream stream,
Properties defaultProperties)