|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object processing.app.windows.Registry
public class Registry
Methods for accessing the Windows Registry. Only String and DWORD values supported at the moment.
Nested Class Summary | |
---|---|
static class |
Registry.REGISTRY_ROOT_KEY
|
Constructor Summary | |
---|---|
Registry()
|
Method Summary | |
---|---|
static boolean |
createKey(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String parent,
java.lang.String name)
Create a new key. |
static boolean |
deleteKey(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String parent,
java.lang.String name)
Delete a key. |
static boolean |
deleteValue(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String subKeyName,
java.lang.String name)
Delete a value. |
static int |
getIntValue(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String subKeyName,
java.lang.String name)
Read an int value. |
static java.lang.String |
getStringValue(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String subKeyName,
java.lang.String name)
Read a String value. |
static java.lang.String[] |
getSubKeys(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String parent)
Get all sub keys of a key. |
static java.util.TreeMap<java.lang.String,java.lang.Object> |
getValues(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String key)
Get all values under a key. |
static void |
main(java.lang.String[] args)
Testing. |
static boolean |
setIntValue(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String subKeyName,
java.lang.String name,
int value)
Writes an int value. |
static boolean |
setStringValue(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String subKeyName,
java.lang.String name,
java.lang.String value)
Writes a String value. |
static boolean |
valueExists(Registry.REGISTRY_ROOT_KEY rootKey,
java.lang.String subKeyName,
java.lang.String name)
Check for existence of a value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Registry()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- arguments
java.lang.Exception
- on errorpublic static java.lang.String getStringValue(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String subKeyName, java.lang.String name) throws java.io.UnsupportedEncodingException
rootKey
- root keysubKeyName
- key namename
- value name
java.io.UnsupportedEncodingException
- on errorpublic static int getIntValue(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String subKeyName, java.lang.String name)
rootKey
- root keysubKeyName
- key namename
- value name
public static boolean deleteValue(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String subKeyName, java.lang.String name)
rootKey
- root keysubKeyName
- key namename
- value name
public static boolean setStringValue(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String subKeyName, java.lang.String name, java.lang.String value) throws java.io.UnsupportedEncodingException
rootKey
- root keysubKeyName
- key namename
- value namevalue
- value
java.io.UnsupportedEncodingException
- on errorpublic static boolean setIntValue(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String subKeyName, java.lang.String name, int value)
rootKey
- root keysubKeyName
- key namename
- value namevalue
- value
public static boolean valueExists(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String subKeyName, java.lang.String name)
rootKey
- root keysubKeyName
- key namename
- value name
public static boolean createKey(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String parent, java.lang.String name)
rootKey
- root keyparent
- name of parent keyname
- key name
public static boolean deleteKey(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String parent, java.lang.String name)
rootKey
- root keyparent
- name of parent keyname
- key name
public static java.lang.String[] getSubKeys(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String parent)
rootKey
- root keyparent
- key name
public static java.util.TreeMap<java.lang.String,java.lang.Object> getValues(Registry.REGISTRY_ROOT_KEY rootKey, java.lang.String key) throws java.io.UnsupportedEncodingException
rootKey
- root keykey
- jey name
java.io.UnsupportedEncodingException
- on error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |