Class XMLPreferenceManager.XMLProperties

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>
    Enclosing class:
    XMLPreferenceManager

    protected class XMLPreferenceManager.XMLProperties
    extends java.util.Properties
    To store the preferences.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.Properties

        defaults
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected XMLProperties()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void load​(java.io.InputStream is)
      Reads a property list (key and element pairs) from the input stream.
      void store​(java.io.OutputStream os, java.lang.String header)
      Writes this property list (key and element pairs) in this Properties table to the output stream in a format suitable for loading into a Properties table using the load method.
      • 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, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • XMLProperties

        protected XMLProperties()
    • Method Detail

      • load

        public void load​(java.io.InputStream is)
                  throws java.io.IOException
        Reads a property list (key and element pairs) from the input stream. The stream is assumed to be using the ISO 8859-1 character encoding.
        Overrides:
        load in class java.util.Properties
        Throws:
        java.io.IOException
      • store

        public void store​(java.io.OutputStream os,
                          java.lang.String header)
                   throws java.io.IOException
        Writes this property list (key and element pairs) in this Properties table to the output stream in a format suitable for loading into a Properties table using the load method. The stream is written using the ISO 8859-1 character encoding.
        Overrides:
        store in class java.util.Properties
        Throws:
        java.io.IOException