edu.stanford.nlp.util
Class DisabledPreferences

java.lang.Object
  extended by java.util.prefs.Preferences
      extended by java.util.prefs.AbstractPreferences
          extended by edu.stanford.nlp.util.DisabledPreferences

public class DisabledPreferences
extends java.util.prefs.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

Field Summary
 
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
DisabledPreferences()
           
 
Method Summary
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()
           
 
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
 

Constructor Detail

DisabledPreferences

public DisabledPreferences()
Method Detail

putSpi

protected void putSpi(java.lang.String key,
                      java.lang.String value)
Specified by:
putSpi in class java.util.prefs.AbstractPreferences

getSpi

protected java.lang.String getSpi(java.lang.String key)
Specified by:
getSpi in class java.util.prefs.AbstractPreferences

removeSpi

protected void removeSpi(java.lang.String key)
Specified by:
removeSpi in class java.util.prefs.AbstractPreferences

removeNodeSpi

protected void removeNodeSpi()
                      throws java.util.prefs.BackingStoreException
Specified by:
removeNodeSpi in class java.util.prefs.AbstractPreferences
Throws:
java.util.prefs.BackingStoreException

keysSpi

protected java.lang.String[] keysSpi()
                              throws java.util.prefs.BackingStoreException
Specified by:
keysSpi in class java.util.prefs.AbstractPreferences
Throws:
java.util.prefs.BackingStoreException

childrenNamesSpi

protected java.lang.String[] childrenNamesSpi()
                                       throws java.util.prefs.BackingStoreException
Specified by:
childrenNamesSpi in class java.util.prefs.AbstractPreferences
Throws:
java.util.prefs.BackingStoreException

childSpi

protected java.util.prefs.AbstractPreferences childSpi(java.lang.String name)
Specified by:
childSpi in class java.util.prefs.AbstractPreferences

syncSpi

protected void syncSpi()
                throws java.util.prefs.BackingStoreException
Specified by:
syncSpi in class java.util.prefs.AbstractPreferences
Throws:
java.util.prefs.BackingStoreException

flushSpi

protected void flushSpi()
                 throws java.util.prefs.BackingStoreException
Specified by:
flushSpi in class java.util.prefs.AbstractPreferences
Throws:
java.util.prefs.BackingStoreException


Stanford NLP Group