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
This is an extension of Java Properties that stores the properties
alphabetically
- Version:
- 1.0
- Author:
- Brian Pipa - http://pipasoft.com
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKeys()
All the keys but alphabetically orderedkeys()
void
store
(OutputStream out, String header) Overrides the original store() method and sorts the outputMethods inherited from class java.util.Properties
clear, 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
-
OrderedProperties
public OrderedProperties()
-
-
Method Details
-
keys
- Overrides:
keys
in classProperties
-
store
Overrides the original store() method and sorts the output- Overrides:
store
in classProperties
- Parameters:
out
- a FileOutPutStream to send the output toheader
- a textual header for the top of the file- Throws:
IOException
- when things go wrong
-
getKeys
All the keys but alphabetically ordered- Returns:
- the ordered collection of all the keys
-