Class 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 of Properties 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 of Properties, so be aware that adjustments may be necessary if the Properties implementation changes. NOTE: The solution was taken to guarantee correct escaping when storing properties.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.Properties

        defaults
    • 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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 class java.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 class java.util.Properties
        Throws:
        java.io.IOException
        See Also:
        Properties.store(java.io.Writer, java.lang.String)