Class OrderedProperties

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Direct Known Subclasses:
ContextProperties

public class OrderedProperties extends Properties
This is an extension of Java Properties that stores the properties alphabetically
Version:
1.0
Author:
Brian Pipa - http://pipasoft.com
See Also:
  • Constructor Details

    • OrderedProperties

      public OrderedProperties()
  • Method Details

    • keys

      public Enumeration<Object> keys()
      Overrides:
      keys in class Properties
    • store

      public void store(OutputStream out, String header) throws IOException
      Overrides the original store() method and sorts the output
      Overrides:
      store in class Properties
      Parameters:
      out - a FileOutPutStream to send the output to
      header - a textual header for the top of the file
      Throws:
      IOException - when things go wrong
    • getKeys

      public List<String> getKeys()
      All the keys but alphabetically ordered
      Returns:
      the ordered collection of all the keys