add Properties.getProperty(String,String)

This commit is contained in:
Zsombor 2008-07-13 18:27:42 -06:00 committed by Joel Dice
parent e507a26081
commit 6409747f17

View File

@ -37,6 +37,14 @@ public class Properties extends Hashtable {
return (String)get(key);
}
public String getProperty(String key, String defaultValue) {
String value = (String) get(key);
if (value == null) {
return defaultValue;
}
return value;
}
public void setProperty(String key, String value) {
put(key, value);
}