java.util.prefs
9 classes of the module java.prefs.
Load them with:
using {
"java.util.prefs"
}
AbstractPreferences#
abstract · extends Preferences · java.util.prefs.AbstractPreferences
The methods and fields of Preferences are inherited.
BackingStoreException#
class · extends Exception · java.util.prefs.BackingStoreException
Constructors
new BackingStoreException(String s) |
new BackingStoreException(Throwable cause) |
Ring: new BackingStoreException(args) uses the constructor with the fewest parameters (at least one); new BackingStoreException makes the object with the constructor without parameters; the others: (new BackingStoreException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
InvalidPreferencesFormatException#
class · extends Exception · java.util.prefs.InvalidPreferencesFormatException
Constructors
new InvalidPreferencesFormatException(Throwable cause) |
new InvalidPreferencesFormatException(String message) |
new InvalidPreferencesFormatException(String message, Throwable cause) |
Ring: new InvalidPreferencesFormatException(args) uses the constructor with the fewest parameters (at least one); new InvalidPreferencesFormatException makes the object with the constructor without parameters; the others: (new InvalidPreferencesFormatException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
NodeChangeEvent#
class · extends EventObject · java.util.prefs.NodeChangeEvent
Constructors
new NodeChangeEvent(Preferences parent, Preferences child) |
Ring: new NodeChangeEvent(args) uses the constructor with the fewest parameters (at least one); new NodeChangeEvent makes the object with the constructor without parameters; the others: (new NodeChangeEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getChild | getChild() | Preferences getChild() |
getParent | getParent() | Preferences getParent() |
The methods and fields of EventObject are inherited.
NodeChangeListener#
interface · java.util.prefs.NodeChangeListener
Extends: EventListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
childAdded | childAdded(evt) | void childAdded(NodeChangeEvent evt) |
childRemoved | childRemoved(evt) | void childRemoved(NodeChangeEvent evt) |
PreferenceChangeEvent#
class · extends EventObject · java.util.prefs.PreferenceChangeEvent
Constructors
new PreferenceChangeEvent(Preferences node, String key, String newValue) |
Ring: new PreferenceChangeEvent(args) uses the constructor with the fewest parameters (at least one); new PreferenceChangeEvent makes the object with the constructor without parameters; the others: (new PreferenceChangeEvent).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getKey | getKey() | String getKey() |
getNewValue | getNewValue() | String getNewValue() |
getNode | getNode() | Preferences getNode() |
The methods and fields of EventObject are inherited.
PreferenceChangeListener#
interface · java.util.prefs.PreferenceChangeListener
Extends: EventListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
preferenceChange | preferenceChange(evt) | void preferenceChange(PreferenceChangeEvent evt) |
Preferences#
abstract · extends Object · java.util.prefs.Preferences
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MAX_KEY_LENGTH | int | constant · static | o.MAX_KEY_LENGTH |
MAX_VALUE_LENGTH | int | constant · static | o.MAX_VALUE_LENGTH |
MAX_NAME_LENGTH | int | constant · static | o.MAX_NAME_LENGTH |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(key,def) | String get(String key, String def) |
@put | @put(key,value) | void put(String key, String value) |
absolutePath | absolutePath() | String absolutePath() |
addNodeChangeListener | addNodeChangeListener(ncl) | void addNodeChangeListener(NodeChangeListener ncl) |
addPreferenceChangeListener | addPreferenceChangeListener(pcl) | void addPreferenceChangeListener(PreferenceChangeListener pcl) |
childrenNames | childrenNames() | String[] childrenNames() |
clear | clear() | void clear() |
exportNode | exportNode(os) | void exportNode(OutputStream os) |
exportSubtree | exportSubtree(os) | void exportSubtree(OutputStream os) |
flush | flush() | void flush() |
getBoolean | getBoolean(key,def) | boolean getBoolean(String key, boolean def) |
getByteArray | getByteArray(key,def) | byte[] getByteArray(String key, byte[] def) |
getDouble | getDouble(key,def) | double getDouble(String key, double def) |
getFloat | getFloat(key,def) | float getFloat(String key, float def) |
getInt | getInt(key,def) | int getInt(String key, int def) |
getLong | getLong(key,def) | long getLong(String key, long def) |
importPreferences | importPreferences(is) | static void importPreferences(InputStream is) |
isUserNode | isUserNode() | boolean isUserNode() |
keys | keys() | String[] keys() |
name | name() | String name() |
node | node(pathName) | Preferences node(String pathName) |
nodeExists | nodeExists(pathName) | boolean nodeExists(String pathName) |
parent | parent() | Preferences parent() |
putBoolean | putBoolean(key,value) | void putBoolean(String key, boolean value) |
putByteArray | putByteArray(key,value) | void putByteArray(String key, byte[] value) |
putDouble | putDouble(key,value) | void putDouble(String key, double value) |
putFloat | putFloat(key,value) | void putFloat(String key, float value) |
putInt | putInt(key,value) | void putInt(String key, int value) |
putLong | putLong(key,value) | void putLong(String key, long value) |
remove | remove(key) | void remove(String key) |
removeNode | removeNode() | void removeNode() |
removeNodeChangeListener | removeNodeChangeListener(ncl) | void removeNodeChangeListener(NodeChangeListener ncl) |
removePreferenceChangeListener | removePreferenceChangeListener(pcl) | void removePreferenceChangeListener(PreferenceChangeListener pcl) |
sync | sync() | void sync() |
systemNodeForPackage | systemNodeForPackage(c) | static Preferences systemNodeForPackage(Class c) |
systemRoot | systemRoot() | static Preferences systemRoot() |
userNodeForPackage | userNodeForPackage(c) | static Preferences userNodeForPackage(Class c) |
userRoot | userRoot() | static Preferences userRoot() |
The methods and fields of Object are inherited.
PreferencesFactory#
interface · java.util.prefs.PreferencesFactory
Methods
| Method | Ring call | Java overloads |
|---|---|---|
systemRoot | systemRoot() | Preferences systemRoot() |
userRoot | userRoot() | Preferences userRoot() |