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 Summary
Constructors Constructor Description OrderedProperties()
-
Method Summary
All 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.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
-
-
-
-
Method Detail
-
keys
public Enumeration<Object> keys()
- Overrides:
keysin classProperties
-
store
public void store(OutputStream out, String header) throws IOException
Overrides the original store() method and sorts the output- Overrides:
storein 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
-
-