Package com.jk.core.util
Class JKUserPreferences
java.lang.Object
com.jk.core.util.JKUserPreferences
The Class UserPreferences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clear.protected static String
Fix key.static String
Gets the.static boolean
getBoolean
(String key, boolean def) Gets the boolean.byte[]
getByteArray
(String key, byte[] def) Gets the byte array.static float
Gets the float.getHashtable
(String name) Gets the hashtable.static int
Gets the int.static String
Gets the key prefix.static String[]
keys()
Keys.static void
Put.static void
putBoolean
(String key, boolean value) Put boolean.void
putByteArray
(String key, byte[] value) Put byte array.static void
Put float.static void
putHashTable
(String name, Hashtable hash) Put hash table.static void
Put int.static void
setKeyPrefix
(String keyPrefix) Sets the key prefix.
-
Constructor Details
-
JKUserPreferences
public JKUserPreferences()
-
-
Method Details
-
clear
Clear.- Throws:
BackingStoreException
- the backing store exception
-
fixKey
Fix key.- Parameters:
key
- the key- Returns:
- the string
-
get
Gets the.- Parameters:
key
- the keydef
- the def- Returns:
- the string
-
getBoolean
Gets the boolean.- Parameters:
key
- the keydef
- the def- Returns:
- the boolean
-
getFloat
Gets the float.- Parameters:
key
- the keydef
- the def- Returns:
- the float
-
getHashtable
Gets the hashtable.- Parameters:
name
- the name- Returns:
- the hashtable
-
getInt
Gets the int.- Parameters:
key
- the keydef
- the def- Returns:
- the int
-
getKeyPrefix
Gets the key prefix.- Returns:
- the key prefix
-
keys
Keys.- Returns:
- the string[]
- Throws:
BackingStoreException
- the backing store exception
-
put
Put.- Parameters:
key
- the keyvalue
- the value
-
putBoolean
Put boolean.- Parameters:
key
- the keyvalue
- the value
-
putFloat
Put float.- Parameters:
key
- the keyvalue
- the value
-
putHashTable
Put hash table.- Parameters:
name
- the namehash
- the hash
-
putInt
Put int.- Parameters:
key
- the keyvalue
- the value
-
setKeyPrefix
Sets the key prefix.- Parameters:
keyPrefix
- the new key prefix
-
getByteArray
Gets the byte array.- Parameters:
key
- the keydef
- the def- Returns:
- the byte array
-
putByteArray
Put byte array.- Parameters:
key
- the keyvalue
- the value
-