| java.lang.Object org.apache.tomcat.jni.Registry
Registry | public class Registry (Code) | | Windows Registy support
author: Mladen Turk version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
native public static int | close(long key) Close the specified Registry key. | native public static long | create(int root, String name, int sam, long pool) Create or open a Registry Key.
Parameters: name - Registry Subkey to open Parameters: root - Root key, one of HKEY_* Parameters: som - Access mask that specifies the access rights for the key. | native public static int | deleteKey(int root, String name, boolean onlyIfEmpty) | native public static int | deleteValue(long key, String name) | native public static String[] | enumKeys(long key) | native public static String[] | enumValues(long key) | native public static int | getSize(long key, String name) Get the Registry key length. | native public static int | getType(long key, String name) Get the Registry key type. | native public static String[] | getValueA(long key, String name) | native public static byte[] | getValueB(long key, String name) | native public static int | getValueI(long key, String name) | native public static long | getValueJ(long key, String name) | native public static String | getValueS(long key, String name) | native public static long | open(int root, String name, int sam, long pool) Opens the specified Registry Key.
Parameters: name - Registry Subkey to open Parameters: root - Root key, one of HKEY_* Parameters: som - Access mask that specifies the access rights for the key. | native public static int | setValueA(long key, String name, String[] val) | native public static int | setValueB(long key, String name, byte[] val) | native public static int | setValueE(long key, String name, String val) | native public static int | setValueI(long key, String name, int val) | native public static int | setValueJ(long key, String name, int val) | native public static int | setValueS(long key, String name, String val) |
HKEY_CLASSES_ROOT | final public static int HKEY_CLASSES_ROOT(Code) | | |
HKEY_CURRENT_CONFIG | final public static int HKEY_CURRENT_CONFIG(Code) | | |
HKEY_CURRENT_USER | final public static int HKEY_CURRENT_USER(Code) | | |
HKEY_LOCAL_MACHINE | final public static int HKEY_LOCAL_MACHINE(Code) | | |
HKEY_USERS | final public static int HKEY_USERS(Code) | | |
KEY_ALL_ACCESS | final public static int KEY_ALL_ACCESS(Code) | | |
KEY_CREATE_LINK | final public static int KEY_CREATE_LINK(Code) | | |
KEY_CREATE_SUB_KEY | final public static int KEY_CREATE_SUB_KEY(Code) | | |
KEY_ENUMERATE_SUB_KEYS | final public static int KEY_ENUMERATE_SUB_KEYS(Code) | | |
KEY_EXECUTE | final public static int KEY_EXECUTE(Code) | | |
KEY_NOTIFY | final public static int KEY_NOTIFY(Code) | | |
KEY_QUERY_VALUE | final public static int KEY_QUERY_VALUE(Code) | | |
KEY_READ | final public static int KEY_READ(Code) | | |
KEY_SET_VALUE | final public static int KEY_SET_VALUE(Code) | | |
KEY_WOW64_32KEY | final public static int KEY_WOW64_32KEY(Code) | | |
KEY_WOW64_64KEY | final public static int KEY_WOW64_64KEY(Code) | | |
KEY_WRITE | final public static int KEY_WRITE(Code) | | |
REG_BINARY | final public static int REG_BINARY(Code) | | |
REG_DWORD | final public static int REG_DWORD(Code) | | |
REG_EXPAND_SZ | final public static int REG_EXPAND_SZ(Code) | | |
REG_MULTI_SZ | final public static int REG_MULTI_SZ(Code) | | |
REG_QWORD | final public static int REG_QWORD(Code) | | |
REG_SZ | final public static int REG_SZ(Code) | | |
close | native public static int close(long key)(Code) | | Close the specified Registry key.
Parameters: key - The Registry key descriptor to close. |
create | native public static long create(int root, String name, int sam, long pool) throws Error(Code) | | Create or open a Registry Key.
Parameters: name - Registry Subkey to open Parameters: root - Root key, one of HKEY_* Parameters: som - Access mask that specifies the access rights for the key. Opened Registry key |
deleteKey | native public static int deleteKey(int root, String name, boolean onlyIfEmpty)(Code) | | Delete the Registry subkey
Parameters: root - Root key, one of HKEY_* Parameters: name - Subkey to delete Parameters: onlyIfEmpty - If true will not delete a key ifit contains any subkeys or values If the function succeeds, the return value is 0 |
deleteValue | native public static int deleteValue(long key, String name)(Code) | | Delete the Registry value
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to delete If the function succeeds, the return value is 0 |
enumKeys | native public static String[] enumKeys(long key) throws Error(Code) | | Enumerate the Registry subkeys
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Array of all subkey names |
enumValues | native public static String[] enumValues(long key) throws Error(Code) | | Enumerate the Registry values
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Array of all value names |
getSize | native public static int getSize(long key, String name)(Code) | | Get the Registry key length.
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Value size or negative error value |
getType | native public static int getType(long key, String name)(Code) | | Get the Registry key type.
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Value type or negative error value |
getValueA | native public static String[] getValueA(long key, String name) throws Error(Code) | | Get the Registry value for REG_MULTI_SZ
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Registry key value |
getValueB | native public static byte[] getValueB(long key, String name) throws Error(Code) | | Get the Registry value for REG_BINARY
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Registry key value |
getValueI | native public static int getValueI(long key, String name) throws Error(Code) | | Get the Registry value for REG_DWORD
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Registry key value |
getValueJ | native public static long getValueJ(long key, String name) throws Error(Code) | | Get the Registry value for REG_QWORD or REG_DWORD
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Registry key value |
getValueS | native public static String getValueS(long key, String name) throws Error(Code) | | Get the Registry value for REG_SZ or REG_EXPAND_SZ
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to query Registry key value |
open | native public static long open(int root, String name, int sam, long pool) throws Error(Code) | | Opens the specified Registry Key.
Parameters: name - Registry Subkey to open Parameters: root - Root key, one of HKEY_* Parameters: som - Access mask that specifies the access rights for the key. Opened Registry key |
setValueA | native public static int setValueA(long key, String name, String[] val)(Code) | | Set the Registry value for REG_MULTI_SZ
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to set Parameters: val - The the value to set If the function succeeds, the return value is 0 |
setValueB | native public static int setValueB(long key, String name, byte[] val)(Code) | | Set the Registry value for REG_BINARY
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to set Parameters: val - The the value to set If the function succeeds, the return value is 0 |
setValueE | native public static int setValueE(long key, String name, String val)(Code) | | Set the Registry value for REG_EXPAND_SZ
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to set Parameters: val - The the value to set If the function succeeds, the return value is 0 |
setValueI | native public static int setValueI(long key, String name, int val)(Code) | | Set the Registry value for REG_DWORD
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to set Parameters: val - The the value to set If the function succeeds, the return value is 0 |
setValueJ | native public static int setValueJ(long key, String name, int val)(Code) | | Set the Registry value for REG_QWORD
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to set Parameters: val - The the value to set If the function succeeds, the return value is 0 |
setValueS | native public static int setValueS(long key, String name, String val)(Code) | | Set the Registry value for REG_SZ
Parameters: key - The Registry key descriptor to use. Parameters: name - The name of the value to set Parameters: val - The the value to set If the function succeeds, the return value is 0 |
|
|