|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.prefs.Preferences
java.util.prefs.AbstractPreferences
org.fuin.utils4j.PropertiesFilePreferences
public final class PropertiesFilePreferences
A directory and PropertiesFile based Preferences
API implementation.
| Field Summary | |
|---|---|
static String |
FILENAME
Filename the properties of this node are stored under. |
| Fields inherited from class java.util.prefs.AbstractPreferences |
|---|
lock, newNode |
| Fields inherited from class java.util.prefs.Preferences |
|---|
MAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH |
| Constructor Summary | |
|---|---|
PropertiesFilePreferences(File dir)
Constructor with directory. |
|
PropertiesFilePreferences(PropertiesFilePreferences parent,
File dir)
Constructor with parent node and directory. |
|
| Method Summary | |
|---|---|
protected String[] |
childrenNamesSpi()
|
protected AbstractPreferences |
childSpi(String name)
|
protected void |
flushSpi()
|
protected String |
getSpi(String key)
|
protected String[] |
keysSpi()
|
protected void |
putSpi(String key,
String value)
|
protected void |
removeNodeSpi()
|
protected void |
removeSpi(String key)
|
protected void |
syncSpi()
|
Properties |
toProperties()
Returns a copy of all properties. |
| Methods inherited from class java.util.prefs.AbstractPreferences |
|---|
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 |
| Methods inherited from class java.util.prefs.Preferences |
|---|
importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FILENAME
| Constructor Detail |
|---|
public PropertiesFilePreferences(File dir)
dir - Directory where the preferences are stored.
public PropertiesFilePreferences(PropertiesFilePreferences parent,
File dir)
parent - Parent node.dir - Directory where the preferences are stored.| Method Detail |
|---|
protected final AbstractPreferences childSpi(String name)
childSpi in class AbstractPreferences
protected final String[] childrenNamesSpi()
throws BackingStoreException
childrenNamesSpi in class AbstractPreferencesBackingStoreException
protected void flushSpi()
throws BackingStoreException
flushSpi in class AbstractPreferencesBackingStoreExceptionprotected final String getSpi(String key)
getSpi in class AbstractPreferences
protected final String[] keysSpi()
throws BackingStoreException
keysSpi in class AbstractPreferencesBackingStoreException
protected final void putSpi(String key,
String value)
putSpi in class AbstractPreferences
protected final void removeNodeSpi()
throws BackingStoreException
removeNodeSpi in class AbstractPreferencesBackingStoreExceptionprotected final void removeSpi(String key)
removeSpi in class AbstractPreferences
protected final void syncSpi()
throws BackingStoreException
syncSpi in class AbstractPreferencesBackingStoreExceptionpublic final Properties toProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||