net.sourceforge.nite.corpus
Class PreferenceLoader

java.lang.Object
  extended by 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)
           
 
Method Summary
 Preferences getPreferences()
           
 void savePreferences(Preferences preferences)
          save preferences to disk
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

Method Detail

getPreferences

public Preferences getPreferences()

savePreferences

public void savePreferences(Preferences preferences)
save preferences to disk