Package com.openstego.desktop.util
Class UserPreferences
- java.lang.Object
-
- com.openstego.desktop.util.UserPreferences
-
public class UserPreferences extends java.lang.Object
User preferences manager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserPreferences()
Protected constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Boolean
getBoolean(java.lang.String key)
Returns the user preference in form of booleanstatic java.lang.Float
getFloat(java.lang.String key)
Returns the user preference in form of floatstatic java.lang.Integer
getInteger(java.lang.String key)
Returns the user preference in form of integerstatic java.lang.String
getString(java.lang.String key)
Returns the user preference in form of stringstatic void
init()
Initialize the preferences
-
-
-
Method Detail
-
init
public static void init() throws OpenStegoException
Initialize the preferences- Throws:
OpenStegoException
-
getString
public static java.lang.String getString(java.lang.String key)
Returns the user preference in form of string- Parameters:
key
- Preference key- Returns:
- value
-
getInteger
public static java.lang.Integer getInteger(java.lang.String key) throws OpenStegoException
Returns the user preference in form of integer- Parameters:
key
- Preference key- Returns:
- value
- Throws:
OpenStegoException
-
getFloat
public static java.lang.Float getFloat(java.lang.String key) throws OpenStegoException
Returns the user preference in form of float- Parameters:
key
- Preference key- Returns:
- value
- Throws:
OpenStegoException
-
getBoolean
public static java.lang.Boolean getBoolean(java.lang.String key) throws OpenStegoException
Returns the user preference in form of boolean- Parameters:
key
- Preference key- Returns:
- value
- Throws:
OpenStegoException
-
-