java.util
Class Properties
java.lang.Object
java.util.Hashtable
java.util.Properties
public class Properties
- extends Hashtable
Properties class, used to store properties using a key,
and retrieving properties with a key. String for both.
Integrates well with File for saving to file system.
- Author:
- BB
Properties
public Properties()
Properties
public Properties(Properties defaults)
setProperty
public void setProperty(String key,
String value)
load
public void load(InputStream inStream)
throws IOException
- Throws:
IOException
store
public void store(OutputStream out,
String comments)
throws IOException
- Throws:
IOException
getProperty
public String getProperty(String key)
getProperty
public String getProperty(String key,
String defaultValue)
propertyNames
public Enumeration propertyNames()
list
public void list(PrintStream out)