net.sourceforge.nite.corpus
Class PreferenceLoader
java.lang.Object
net.sourceforge.nite.corpus.PreferenceLoader
public class PreferenceLoader
- extends java.lang.Object
This is a convenience class that provides a standard location for
corpus preferences and backwards compatibility with the old style
preferences so people don't lose bookmarks
|
Constructor Summary |
PreferenceLoader()
Take the preference directory from the Java Property
NXT_SEARCH_PREFERENCES_DIRECTORY, and if that is not present,
default to user.home |
PreferenceLoader(java.lang.String directory)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreferenceLoader
public PreferenceLoader(java.lang.String directory)
PreferenceLoader
public PreferenceLoader()
- Take the preference directory from the Java Property
NXT_SEARCH_PREFERENCES_DIRECTORY, and if that is not present,
default to user.home
getPreferences
public Preferences getPreferences()
savePreferences
public void savePreferences(Preferences preferences)
- save preferences to disk