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 protectedUserPreferences()Protected constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleangetBoolean(String key)Returns the user preference in form of booleanstatic FloatgetFloat(String key)Returns the user preference in form of floatstatic IntegergetInteger(String key)Returns the user preference in form of integerstatic StringgetString(String key)Returns the user preference in form of stringstatic voidinit()Initialize the preferences
-
-
-
Method Detail
-
init
public static void init() throws OpenStegoExceptionInitialize 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
-
-