public class XMLPreferenceManager extends PreferenceManager
PreferenceManager
which store the preference
in XML.Modifier and Type | Class and Description |
---|---|
protected class |
XMLPreferenceManager.XMLProperties
To store the preferences.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFERENCE_ENCODING
The XML encoding used to store properties
|
protected java.lang.String |
xmlParserClassName
The XML parser
|
defaults, FILE_SEP, fullName, internal, prefFileName, USER_DIR, USER_HOME
Constructor and Description |
---|
XMLPreferenceManager(java.lang.String prefFileName)
Creates a preference manager.
|
XMLPreferenceManager(java.lang.String prefFileName,
java.util.Map defaults)
Creates a preference manager.
|
XMLPreferenceManager(java.lang.String prefFileName,
java.util.Map defaults,
java.lang.String parser)
Creates a preference manager with a default values
initialization map.
|
XMLPreferenceManager(java.lang.String prefFileName,
java.lang.String parser)
Creates a preference manager.
|
getBoolean, getColor, getDimension, getFile, getFiles, getFloat, getFont, getInteger, getPoint, getPreferenceDirectory, getRectangle, getString, getStrings, getSystemProperty, getURL, getURLs, load, save, setBoolean, setColor, setDimension, setFile, setFiles, setFloat, setFont, setInteger, setPoint, setPreferenceDirectory, setRectangle, setString, setStrings, setURL, setURLs
protected java.lang.String xmlParserClassName
public static final java.lang.String PREFERENCE_ENCODING
public XMLPreferenceManager(java.lang.String prefFileName)
prefFileName
- the name of the preference file.public XMLPreferenceManager(java.lang.String prefFileName, java.util.Map defaults)
prefFileName
- the name of the preference file.defaults
- where to get defaults value if the value is
not specified in the file.public XMLPreferenceManager(java.lang.String prefFileName, java.lang.String parser)
prefFileName
- the name of the preference file.parser
- The XML parser class name.public XMLPreferenceManager(java.lang.String prefFileName, java.util.Map defaults, java.lang.String parser)
prefFileName
- the name of the preference file.defaults
- where to get defaults value if the value is
not specified in the file.parser
- The XML parser class name.Copyright © 2022 Apache Software Foundation. All Rights Reserved.