edu.stanford.nlp.util
Class DisabledPreferences

java.lang.Object
  extended byjava.util.prefs.Preferences
      extended byjava.util.prefs.AbstractPreferences
          extended byedu.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

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  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()
           
 
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(String key,
                      String value)

getSpi

protected String getSpi(String key)

removeSpi

protected void removeSpi(String key)

removeNodeSpi

protected void removeNodeSpi()
                      throws BackingStoreException
Throws:
BackingStoreException

keysSpi

protected String[] keysSpi()
                    throws BackingStoreException
Throws:
BackingStoreException

childrenNamesSpi

protected String[] childrenNamesSpi()
                             throws BackingStoreException
Throws:
BackingStoreException

childSpi

protected AbstractPreferences childSpi(String name)

syncSpi

protected void syncSpi()
                throws BackingStoreException
Throws:
BackingStoreException

flushSpi

protected void flushSpi()
                 throws BackingStoreException
Throws:
BackingStoreException


Stanford NLP Group