Class OrderedProperties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--OrderedProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class OrderedProperties
extends java.util.Properties

This is an extension of Java Properties that stores the properties alphabetically

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
OrderedProperties()
           
 
Method Summary
 void store(java.io.OutputStream out, java.lang.String header)
          Overrides the original store() method and sorts the output
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty
 
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

OrderedProperties

public OrderedProperties()
Method Detail

store

public void store(java.io.OutputStream out,
                  java.lang.String header)
           throws java.io.IOException
Overrides the original store() method and sorts the output

Overrides:
store in class java.util.Properties
Parameters:
out - a FileOutPutStream to send the output to
header - a textual header for the top of the file
Throws:
java.io.IOException - when things go wrong