edu.stanford.nlp.util
Class DisabledPreferences
java.lang.Object
java.util.prefs.Preferences
java.util.prefs.AbstractPreferences
edu.stanford.nlp.util.DisabledPreferences
public class DisabledPreferences
- extends AbstractPreferences
A do-nothing Preferences implementation so that we can avoid the hassles
of the JVM Preference implementations.
Taken from: http://www.allaboutbalance.com/disableprefs/index.html
- Author:
- Robert Slifka
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 |
DisabledPreferences
public DisabledPreferences()
putSpi
protected void putSpi(String key,
String value)
- Specified by:
putSpi
in class AbstractPreferences
getSpi
protected String getSpi(String key)
- Specified by:
getSpi
in class AbstractPreferences
removeSpi
protected void removeSpi(String key)
- Specified by:
removeSpi
in class AbstractPreferences
removeNodeSpi
protected void removeNodeSpi()
throws BackingStoreException
- Specified by:
removeNodeSpi
in class AbstractPreferences
- Throws:
BackingStoreException
keysSpi
protected String[] keysSpi()
throws BackingStoreException
- Specified by:
keysSpi
in class AbstractPreferences
- Throws:
BackingStoreException
childrenNamesSpi
protected String[] childrenNamesSpi()
throws BackingStoreException
- Specified by:
childrenNamesSpi
in class AbstractPreferences
- Throws:
BackingStoreException
childSpi
protected AbstractPreferences childSpi(String name)
- Specified by:
childSpi
in class AbstractPreferences
syncSpi
protected void syncSpi()
throws BackingStoreException
- Specified by:
syncSpi
in class AbstractPreferences
- Throws:
BackingStoreException
flushSpi
protected void flushSpi()
throws BackingStoreException
- Specified by:
flushSpi
in class AbstractPreferences
- Throws:
BackingStoreException
Stanford NLP Group