| public
HyperPreferences.class This class loads and stores data in the underlying Operating System registry. Constructor: HyperPreferences(String) Create and get a HyperPreferences Object for the given key String. the value for this HyperPreferences object will be "unset"/ ie: HyperPreferences myPreference = new HyperPreference("maximum_sockets"); the value in this case of maximum_sockets will be "unset". HyperPreferences(String name,String default_value) Create/get a HyperPreferences Object with the name and if it doesn't exist set it to this default value. Otherwise it will read the value stored in the registry. ie: HyperPreferences myPreference = new HyperPreference("maximum_sockets","100"); the value in this case of maximum_sockets will be "100". Methods: public void put(String name,String value) Store value at key "name" Thus any Preferences object can store a value to any key. Thus you only need 1 HyperPreferences.class Object to store any key value in the OS registry. ie: myPreferences.put("maximum_sockets","200"); public void put(String value) Store value to this preferences object key. ie: myPreferences.put("200"); Note: You may always peek the class variables. myPreferences.key; myPreferences.value; public String get() Get the Value of this key. Note: You could always peek the String mypreferences.value; |