Java Utililty Methods Preference Remove

List of utility methods to do Preference Remove

Description

The list of methods to do Preference Remove are organized into topic(s).

Method

voidremoveAll(Preferences prefs, boolean deep)
Traverse a preference node and optionally all children nodes and remove any keys found.
String[] keys;
String[] children;
int i;
keys = prefs.keys();
for (i = 0; i < keys.length; i++) {
    prefs.remove(keys[i]);
if (deep) {
...
voidremoveCLOB(Preferences prefs, String key)
Removes the character large object (CLOB) associated with the specified key in the given preference node, if any.
prefs.remove(key);
try {
    getClobStorage(prefs, key).removeNode();
} catch (BackingStoreException bse) {
voidremoveKeys(Preferences prefs, String key, int from, int to)
remove Keys
for (int i = from; i < to;)
    prefs.remove(key + '.' + (++i));
if (from == 0)
    prefs.remove(key + ".#");
voidremovePref(String prefName, Object obj)
remove Pref
Preferences prefs = Preferences.userNodeForPackage(obj.getClass());
prefs.remove(prefName);
voidresetPreferences()
Removes all Preferences nodes except for the system and user root nodes.
resetPreferences(Preferences.userRoot());
resetPreferences(Preferences.systemRoot());