net.livesite.util
Class PropertyFile

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by net.livesite.util.PropertyFile
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class PropertyFile
extends Properties

Class for working with property files.

Author:
Ryan Gies
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
PropertyFile()
          Constructor.
PropertyFile(String filename)
          Constructor which also loads the property file from disk.
 
Method Summary
 void store()
          Write the properties to disk.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, 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

PropertyFile

public PropertyFile()
Constructor.


PropertyFile

public PropertyFile(String filename)
             throws Exception
Constructor which also loads the property file from disk.

Parameters:
filename - persistent storage
Throws:
Exception - when an error occurs
Method Detail

store

public void store()
           throws Exception
Write the properties to disk.

Throws:
Exception - when an error occurs