API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.prefs. JOTPreferences View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
 Object
      JOTPropertiesPreferences
          JOTPreferences
Implements
Subclasses
Description
public class JOTPreferences
JOT prefrences handler Uses the jot.properties file.
See also:   
Constructors
private JOTPreferences ()
Methods
Hide/Show inherited methods
public File findAssociatedPropsFile (String props)
  Once the main pref file is found, other associated files can be found in the same location(folder) by this method.
public String findPrefsFile ()
  Search for the prefs file in several places.
public Boolean getBoolean (String key) [Inherited From JOTPropertiesPreferences]
public Boolean getDefaultedBoolean (String key, Boolean defaultValue) [Inherited From JOTPropertiesPreferences]
public Integer getDefaultedInt (String key, Integer defaultValue) [Inherited From JOTPropertiesPreferences]
public Long getDefaultedLong (String key, Long defaultValue) [Inherited From JOTPropertiesPreferences]
public String getDefaultedString (String key, String defaultValue) [Inherited From JOTPropertiesPreferences]
publicstatic JOTPreferences getInstance ()
public Integer getInt (String key) [Inherited From JOTPropertiesPreferences]
public String getString (String key) [Inherited From JOTPropertiesPreferences]
public void initPrefs ()
Loads the props file and init the prefs.
public void loadFrom (File f) throws IOException [Inherited From JOTPropertiesPreferences]
  load prefs from given props file.
public void loadFrom (InputStream input) throws IOException [Inherited From JOTPropertiesPreferences]
public void save ()
public void saveTo (File f) throws IOException [Inherited From JOTPropertiesPreferences]
public void saveTo (OutputStream output) throws IOException [Inherited From JOTPropertiesPreferences]
  Save prefs to stream
public void setBoolean (String key, Boolean value) [Inherited From JOTPropertiesPreferences]
public void setPrefsFile (File f) throws IOException
  Sets the InputStream to fetch taht conatins the preferences.
public void setString (String key, String value) [Inherited From JOTPropertiesPreferences]
publicstatic void setWebConfPath (String path)
Fields
Hide/Show inherited fields
protected Properties props [Inherited From JOTPropertiesPreferences]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar