net.sac.util
Class Properties

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

public class Properties
extends java.util.Properties

Properties provides the same basic functions as the Java Properties class but preserves the property order and comments when storing the properties.

Author:
Scott Arnold
See Also:
Serialized Form

Constructor Summary
Properties()
           
 
Method Summary
 void load(java.io.InputStream is)
           
 void load(java.io.Reader reader)
           
 java.lang.Object setProperty(java.lang.String key, java.lang.String value)
           
 void store(java.io.OutputStream os, java.lang.String comments)
           
 void store(java.io.Writer writer, java.lang.String comments)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Properties

public Properties()
Method Detail

load

public void load(java.io.InputStream is)
          throws java.io.IOException
Overrides:
load in class java.util.Properties
Throws:
java.io.IOException

load

public void load(java.io.Reader reader)
          throws java.io.IOException
Throws:
java.io.IOException

setProperty

public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
Overrides:
setProperty in class java.util.Properties

store

public void store(java.io.OutputStream os,
                  java.lang.String comments)
           throws java.io.IOException
Overrides:
store in class java.util.Properties
Throws:
java.io.IOException

store

public void store(java.io.Writer writer,
                  java.lang.String comments)
           throws java.io.IOException
Throws:
java.io.IOException