net.jot.prefs
Class JOTPreferences

java.lang.Object
  extended by net.jot.prefs.JOTPropertiesPreferences
      extended by net.jot.prefs.JOTPreferences
All Implemented Interfaces:
JOTPreferenceInterface

public class JOTPreferences
extends JOTPropertiesPreferences

JOT prefrences handler Uses the jot.properties file.

Author:
tcolar

Field Summary
 
Fields inherited from class net.jot.prefs.JOTPropertiesPreferences
props
 
Constructor Summary
JOTPreferences()
           
 
Method Summary
 java.io.File findAssociatedPropsFile(java.lang.String props)
          Once the main pref file is found, other associated files can be found in the same location(folder) by this method.
 java.lang.String findPrefsFile()
          Search for the prefs file in several places.
static JOTPreferences getInstance()
           
 void initPrefs()
          Loads the props file and init the prefs.
 void save()
           
 void setPrefsFile(java.io.File f)
          Sets the InputStream to fetch taht conatins the preferences.
static void setWebConfPath(java.lang.String path)
           
 
Methods inherited from class net.jot.prefs.JOTPropertiesPreferences
getBoolean, getDefaultedBoolean, getDefaultedInt, getDefaultedLong, getDefaultedString, getInt, getString, loadFrom, loadFrom, saveTo, saveTo, setBoolean, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOTPreferences

public JOTPreferences()
Method Detail

setWebConfPath

public static void setWebConfPath(java.lang.String path)

getInstance

public static JOTPreferences getInstance()

initPrefs

public void initPrefs()
Loads the props file and init the prefs.


setPrefsFile

public void setPrefsFile(java.io.File f)
                  throws java.io.IOException
Sets the InputStream to fetch taht conatins the preferences.

Parameters:
input -
Throws:
java.io.IOException

findPrefsFile

public java.lang.String findPrefsFile()
Search for the prefs file in several places.

Returns:

save

public void save()

findAssociatedPropsFile

public java.io.File findAssociatedPropsFile(java.lang.String props)
Once the main pref file is found, other associated files can be found in the same location(folder) by this method.

Parameters:
props -
Returns: