Class CmsMessageBundleEditorModel.SortedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorModel.SortedProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
- Enclosing class:
- CmsMessageBundleEditorModel
public static final class CmsMessageBundleEditorModel.SortedProperties extends java.util.Properties
Extension ofProperties
to allow saving with keys alphabetically ordered and without time stamp as first comment. NOTE: Can't handle comments. They are just discarded. NOTE: Most of the class is just a plain copy of the private methods ofProperties
, so be aware that adjustments may be necessary if theProperties
implementation changes. NOTE: The solution was taken to guarantee correct escaping when storing properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortedProperties()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
store(java.io.OutputStream out, java.lang.String comments)
Override to omit the date comment.void
store(java.io.Writer writer, java.lang.String comments)
Override to omit the date comment.-
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, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Constructor Detail
-
SortedProperties
public SortedProperties()
Default constructor.
-
-
Method Detail
-
store
public void store(java.io.OutputStream out, java.lang.String comments) throws java.io.IOException
Override to omit the date comment.- Overrides:
store
in classjava.util.Properties
- Throws:
java.io.IOException
- See Also:
Properties.store(java.io.OutputStream, java.lang.String)
-
store
public void store(java.io.Writer writer, java.lang.String comments) throws java.io.IOException
Override to omit the date comment.- Overrides:
store
in classjava.util.Properties
- Throws:
java.io.IOException
- See Also:
Properties.store(java.io.Writer, java.lang.String)
-
-