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
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
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.
Once the main pref file is found, other associated files can be found in the same location(folder)
by this method.
Returns:
Parameters:
-
props
-
public
String
findPrefsFile
()
Search for the prefs file in several places.
Search for the prefs file in several places.
Returns:
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
]
public
static
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.
load prefs from given props file.
Parameters:
-
f
-
Throws:
-
java.io.IOException
-
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
Save prefs to stream
Parameters:
-
output
-
Throws:
-
java.io.IOException
-
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.
Sets the InputStream to fetch taht conatins the preferences.
Parameters:
-
input
-
public
void
setString
(
String
key,
String
value)
[Inherited From
JOTPropertiesPreferences
]
public
static
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