API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.prefs. JOTPreferenceInterface View Source
Author(s)
Thibaut Colar http://jot.colar.net/
Since
Version
Serial
Hierarchy
 JOTPreferenceInterface
Subinterfaces
Description
public interface JOTPreferenceInterface
Main interface for reading a preference file (implementaion takes care of the format) Preferences are key/values ie: xml file, property file etc ...
See also:   
Methods
Hide/Show inherited methods
public Boolean getBoolean (String key)
  Loads a boolean value (true or false 1 or 0) etc..
public Boolean getDefaultedBoolean (String key, Boolean defaultValue)
  Loads a boolean value (true or false 1 or 0) etc..
public String getDefaultedString (String key, String defaultValue)
  Loads a String value Returns 'defaultValue' if not defined or not a boolean
public String getString (String key)
  Loads a String value Returns null if the value is not defined
public void loadFrom (InputStream input) throws IOException
  Loads the prefrence from this input/file into memory (cache)
public void saveTo (OutputStream output) throws IOException
  Saves the preference from the cache into an output/file
public void setBoolean (String key, Boolean value)
  Sets a boolean value
public void setString (String key, String value)
  Sets a string value
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar