Package org.apache.batik.apps.svgbrowser
Class XMLPreferenceManager.XMLProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- org.apache.batik.apps.svgbrowser.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
XMLProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
enumerate(java.util.Map m)
Enumerates all key/value pairs in the specified m.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 thisProperties
table to the output stream in a format suitable for loading into aProperties
table using theload
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
-
-
-
-
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 classjava.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 thisProperties
table to the output stream in a format suitable for loading into aProperties
table using theload
method. The stream is written using the ISO 8859-1 character encoding.- Overrides:
store
in classjava.util.Properties
- Throws:
java.io.IOException
-
enumerate
private void enumerate(java.util.Map m)
Enumerates all key/value pairs in the specified m.- Parameters:
m
- the map
-
-