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
See DIRECT subinterfaces
Quick Links:
Methods
Fields
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..
Loads a boolean value (true or false 1 or 0) etc.. depends of implementation
Returns null if not defined or not a boolean
Returns:
Parameters:
-
key
-
public
Boolean
getDefaultedBoolean
(
String
key,
Boolean
defaultValue)
Loads a boolean value (true or false 1 or 0) etc..
Loads a boolean value (true or false 1 or 0) etc.. depends of implementation
Returns 'defaultValue' if not defined or not a boolean
Returns:
Parameters:
-
key
-
-
defaultValue
-
public
String
getDefaultedString
(
String
key,
String
defaultValue)
Loads a String value Returns 'defaultValue' if not defined or not a boolean
Loads a String value
Returns 'defaultValue' if not defined or not a boolean
Returns:
Parameters:
-
key
-
-
defaultValue
-
public
String
getString
(
String
key)
Loads a String value Returns null if the value is not defined
Loads a String value
Returns null if the value is not defined
Returns:
Parameters:
-
key
-
public
void
loadFrom
(
InputStream
input) throws
IOException
Loads the prefrence from this input/file into memory (cache)
Loads the prefrence from this input/file into memory (cache)
Parameters:
-
input
-
Throws:
-
IOException
-
public
void
saveTo
(
OutputStream
output) throws
IOException
Saves the preference from the cache into an output/file
Saves the preference from the cache into an output/file
Parameters:
-
output
-
Throws:
-
IOException
-
public
void
setBoolean
(
String
key,
Boolean
value)
Sets a boolean value
Sets a boolean value
Parameters:
-
key
-
-
value
-
public
void
setString
(
String
key,
String
value)
Sets a string value
Sets a string value
Parameters:
-
key
-
-
value
-
Fields
Hide/Show inherited fields
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar