Package com.logicaldoc.i18n
Class OrderedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- com.logicaldoc.i18n.OrderedProperties
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
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 void
store(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, keys, 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
-
store
public void store(OutputStream out, String header) throws IOException
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
-
-