|
|||||||||||
| 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
org.dmonix.util.PropertyHandler
Title: PropertyHandler Description: A class to handle property files Copyright: Copyright (c) 2001 Company:
| Nested Class Summary |
| Nested classes inherited from class java.util.Hashtable |
|
| Field Summary |
| Fields inherited from class java.util.Properties |
defaults |
| Constructor Summary | |
PropertyHandler()
Creates an empty property list with no default values. |
|
PropertyHandler(java.util.Properties properties)
Creates an empty property list with the specified defaults. |
|
PropertyHandler(java.lang.String fileName)
Creates an empty property list with the specified defaults from the file |
|
| Method Summary | |
void |
load(java.lang.String fileName)
Reads a property list (key and element pairs) from the given file. |
void |
store(java.lang.String header)
Store the properties to the define file |
void |
store(java.lang.String fileName,
java.lang.String header)
Store the properties to the specified file |
| Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
| 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 PropertyHandler()
public PropertyHandler(java.util.Properties properties)
properties - Default properties to use
public PropertyHandler(java.lang.String fileName)
throws java.io.IOException
fileName - The file to read the properties from| Method Detail |
public void load(java.lang.String fileName)
throws java.io.IOException
fileName - The property file
java.io.IOException
public void store(java.lang.String header)
throws java.io.IOException
header - A header line can be added to the file
java.io.IOException
public void store(java.lang.String fileName,
java.lang.String header)
throws java.io.IOException
header - A header line can be added to the file
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||