Package com.logicaldoc.util.config
Class OrderedProperties
java.lang.Object
java.util.Dictionary<Object,Object>
 
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
This is an extension of Java Properties that stores the properties
 alphabetically
- Version:
- 1.0
- Author:
- Brian Pipa - http://pipasoft.com
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetKeys()All the keys but alphabetically orderedkeys()voidstore(OutputStream out, String header) Overrides the original store() method and sorts the outputMethods 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
- 
Constructor Details- 
OrderedPropertiespublic OrderedProperties()
 
- 
- 
Method Details- 
keys- Overrides:
- keysin class- Properties
 
- 
storeOverrides 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
 
- 
getKeysAll the keys but alphabetically ordered- Returns:
- the ordered collection of all the keys
 
 
-