public final class PropertiesFilePreferences
extends java.util.prefs.AbstractPreferences
PropertiesFile
based Preferences
API implementation.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILENAME
Filename the properties of this node are stored under.
|
Constructor and Description |
---|
PropertiesFilePreferences(java.io.File dir)
Constructor with directory.
|
PropertiesFilePreferences(java.io.File dir,
java.lang.String propFileName)
Constructor with directory.
|
PropertiesFilePreferences(PropertiesFilePreferences parent,
java.io.File dir)
Constructor with parent node and directory.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
childrenNamesSpi() |
protected java.util.prefs.AbstractPreferences |
childSpi(java.lang.String name) |
protected void |
flushSpi() |
protected java.lang.String |
getSpi(java.lang.String key) |
protected java.lang.String[] |
keysSpi() |
protected void |
putSpi(java.lang.String key,
java.lang.String value) |
protected void |
removeNodeSpi() |
protected void |
removeSpi(java.lang.String key) |
protected void |
syncSpi() |
java.util.Properties |
toProperties()
Returns a copy of all properties.
|
absolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, flush, get, getBoolean, getByteArray, getChild, getDouble, getFloat, getInt, getLong, isRemoved, isUserNode, keys, name, node, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, sync, toString
public static final java.lang.String FILENAME
public PropertiesFilePreferences(java.io.File dir)
dir
- Directory where the preferences are stored.public PropertiesFilePreferences(java.io.File dir, java.lang.String propFileName)
dir
- Directory where the preferences are stored.propFileName
- the properties file name where the properties will be stored.public PropertiesFilePreferences(PropertiesFilePreferences parent, java.io.File dir)
parent
- Parent node.dir
- Directory where the preferences are stored.protected final java.util.prefs.AbstractPreferences childSpi(java.lang.String name)
childSpi
in class java.util.prefs.AbstractPreferences
protected final java.lang.String[] childrenNamesSpi() throws java.util.prefs.BackingStoreException
childrenNamesSpi
in class java.util.prefs.AbstractPreferences
java.util.prefs.BackingStoreException
protected void flushSpi() throws java.util.prefs.BackingStoreException
flushSpi
in class java.util.prefs.AbstractPreferences
java.util.prefs.BackingStoreException
protected final java.lang.String getSpi(java.lang.String key)
getSpi
in class java.util.prefs.AbstractPreferences
protected final java.lang.String[] keysSpi() throws java.util.prefs.BackingStoreException
keysSpi
in class java.util.prefs.AbstractPreferences
java.util.prefs.BackingStoreException
protected final void putSpi(java.lang.String key, java.lang.String value)
putSpi
in class java.util.prefs.AbstractPreferences
protected final void removeNodeSpi() throws java.util.prefs.BackingStoreException
removeNodeSpi
in class java.util.prefs.AbstractPreferences
java.util.prefs.BackingStoreException
protected final void removeSpi(java.lang.String key)
removeSpi
in class java.util.prefs.AbstractPreferences
protected final void syncSpi() throws java.util.prefs.BackingStoreException
syncSpi
in class java.util.prefs.AbstractPreferences
java.util.prefs.BackingStoreException
public final java.util.Properties toProperties()