Package com.openstego.desktop.util
Class UserPreferences
- java.lang.Object
-
- com.openstego.desktop.util.UserPreferences
-
public class UserPreferences extends 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 Boolean
getBoolean(String key)
Returns the user preference in form of booleanstatic Float
getFloat(String key)
Returns the user preference in form of floatstatic Integer
getInteger(String key)
Returns the user preference in form of integerstatic String
getString(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
- Processing issues
-
getString
public static String getString(String key)
Returns the user preference in form of string- Parameters:
key
- Preference key- Returns:
- value
-
getInteger
public static Integer getInteger(String key) throws OpenStegoException
Returns the user preference in form of integer- Parameters:
key
- Preference key- Returns:
- value
- Throws:
OpenStegoException
- Processing issues
-
getFloat
public static Float getFloat(String key) throws OpenStegoException
Returns the user preference in form of float- Parameters:
key
- Preference key- Returns:
- value
- Throws:
OpenStegoException
- Processing issues
-
getBoolean
public static Boolean getBoolean(String key) throws OpenStegoException
Returns the user preference in form of boolean- Parameters:
key
- Preference key- Returns:
- value
- Throws:
OpenStegoException
- Processing issues
-
-