Class JKUserPreferences

java.lang.Object
com.jk.core.util.JKUserPreferences

public class JKUserPreferences extends Object
The Class UserPreferences.
  • Constructor Details

    • JKUserPreferences

      public JKUserPreferences()
  • Method Details

    • clear

      public static void clear() throws BackingStoreException
      Clear.
      Throws:
      BackingStoreException - the backing store exception
    • fixKey

      protected static String fixKey(String key)
      Fix key.
      Parameters:
      key - the key
      Returns:
      the string
    • get

      public static String get(String key, String def)
      Gets the.
      Parameters:
      key - the key
      def - the def
      Returns:
      the string
    • getBoolean

      public static boolean getBoolean(String key, boolean def)
      Gets the boolean.
      Parameters:
      key - the key
      def - the def
      Returns:
      the boolean
    • getFloat

      public static float getFloat(String key, float def)
      Gets the float.
      Parameters:
      key - the key
      def - the def
      Returns:
      the float
    • getHashtable

      public static Hashtable<String,String> getHashtable(String name)
      Gets the hashtable.
      Parameters:
      name - the name
      Returns:
      the hashtable
    • getInt

      public static int getInt(String key, int def)
      Gets the int.
      Parameters:
      key - the key
      def - the def
      Returns:
      the int
    • getKeyPrefix

      public static String getKeyPrefix()
      Gets the key prefix.
      Returns:
      the key prefix
    • keys

      public static String[] keys() throws BackingStoreException
      Keys.
      Returns:
      the string[]
      Throws:
      BackingStoreException - the backing store exception
    • put

      public static void put(String key, String value)
      Put.
      Parameters:
      key - the key
      value - the value
    • putBoolean

      public static void putBoolean(String key, boolean value)
      Put boolean.
      Parameters:
      key - the key
      value - the value
    • putFloat

      public static void putFloat(String key, float value)
      Put float.
      Parameters:
      key - the key
      value - the value
    • putHashTable

      public static void putHashTable(String name, Hashtable hash)
      Put hash table.
      Parameters:
      name - the name
      hash - the hash
    • putInt

      public static void putInt(String key, int value)
      Put int.
      Parameters:
      key - the key
      value - the value
    • setKeyPrefix

      public static void setKeyPrefix(String keyPrefix)
      Sets the key prefix.
      Parameters:
      keyPrefix - the new key prefix
    • getByteArray

      public byte[] getByteArray(String key, byte[] def)
      Gets the byte array.
      Parameters:
      key - the key
      def - the def
      Returns:
      the byte array
    • putByteArray

      public void putByteArray(String key, byte[] value)
      Put byte array.
      Parameters:
      key - the key
      value - the value