|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
ifs.util.DataProperties
public class DataProperties
Data properties.
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
DataProperties()
Constructor |
|
DataProperties(Dictionary properties)
Constructor |
|
DataProperties(Properties defaults)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
containsPropery(String key)
Returns true if there is such property |
String |
getProperty(String key,
String defaultValue)
Returns string property |
boolean |
getPropertyBoolean(String key,
boolean defaultValue)
Returns boolean property |
double |
getPropertyDouble(String key,
double defaultValue)
Returns double property |
float |
getPropertyFloat(String key,
float defaultValue)
Returns float property |
int |
getPropertyInt(String key,
int defaultValue)
Returns int property |
long |
getPropertyLong(String key,
long defaultValue)
Returns long property |
void |
load(InputStream inputStream)
Loads properties from an input stream |
Object |
setProperty(String key,
String value)
Sets string property |
Dictionary |
toDict()
Returns properties as dictionary. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, list, list, loadFromXML, propertyNames, save, 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, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataProperties()
public DataProperties(Properties defaults)
defaults - default propertiespublic DataProperties(Dictionary properties)
properties - default properties| Method Detail |
|---|
public String getProperty(String key,
String defaultValue)
getProperty in class Propertieskey - keydefaultValue - default value to be returned when such property is not present
public Object setProperty(String key,
String value)
setProperty in class Propertieskey - keyvalue - value
public int getPropertyInt(String key,
int defaultValue)
key - keydefaultValue - default value to be returned when such property is not present
public long getPropertyLong(String key,
long defaultValue)
key - keydefaultValue - default value to be returned when such property is not presentpublic boolean containsPropery(String key)
key - key
public boolean getPropertyBoolean(String key,
boolean defaultValue)
key - keydefaultValue - default value to be returned when such property is not present
public double getPropertyDouble(String key,
double defaultValue)
key - keydefaultValue - default value to be returned when such property is not present
public float getPropertyFloat(String key,
float defaultValue)
key - keydefaultValue - default value to be returned when such property is not presentpublic Dictionary toDict()
public void load(InputStream inputStream)
throws IOException
load in class PropertiesIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||