protected static class FilePreferences.RootNode extends FilePreferences
FilePreferences.Factory, FilePreferences.RootNode| Modifier and Type | Field and Description |
|---|---|
private java.util.Properties |
cachedProps |
private java.io.File |
file |
root| Constructor and Description |
|---|
RootNode(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoFlush() |
java.io.File |
getFile() |
java.util.Properties |
getProps() |
void |
loadProps() |
java.lang.String |
nodePrefix()
Returns the absolute path and ensures that it ends with a slash (/)
For child nodes this is the same as
absolutePath() + '/' but for
the root node it is just '/'. |
void |
removeProps(java.lang.String basePath,
boolean removeChildren) |
void |
setFile(java.io.File file) |
void |
storeProps() |
childrenNamesSpi, childSpi, createRoot, createRoot, flush, flushSpi, getPreferencesFile, getRoot, getSpi, isModified, keysSpi, putSpi, readProps, removeNodeSpi, removeSpi, rootNode, setPreferencesFile, sync, syncSpiabsolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, 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, toStringprotected void autoFlush()
public java.io.File getFile()
public java.util.Properties getProps()
public void loadProps()
throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreExceptionpublic java.lang.String nodePrefix()
absolutePath() + '/' but for
the root node it is just '/'.nodePrefix in class FilePreferencespublic void removeProps(java.lang.String basePath,
boolean removeChildren)
public void setFile(java.io.File file)
public void storeProps()
throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreException