Package com.logicaldoc.util.config
Class OrderedProperties
- java.lang.Object
- 
- java.util.Dictionary<K,V>
- 
- java.util.Hashtable<Object,Object>
- 
- java.util.Properties
- 
- com.logicaldoc.util.config.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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description OrderedProperties()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getKeys()All the keys but alphabetically orderedEnumeration<Object>keys()voidstore(OutputStream out, String header)Overrides the original store() method and sorts the output- 
Methods inherited from class java.util.Propertiesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
 
- 
 
- 
- 
- 
Method Detail- 
keyspublic Enumeration<Object> keys() - Overrides:
- keysin class- Properties
 
 - 
storepublic void store(OutputStream out, String header) throws IOException Overrides the original store() method and sorts the output- Overrides:
- storein 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
 
 
- 
 
-