| java.lang.Object com.ice.jni.registry.Registry
Registry | public class Registry (Code) | | The Registry class provides is used to load the native
library DLL, as well as a placeholder for the top level
keys, error codes, and utility methods.
|
Method Summary | |
public static void | exportRegistryKey(String pathName, RegistryKey key, boolean descend) Export the textual definition for a registry key to a file. | public static String | getErrorMessage(int errCode) Get the description of a Registry error code. | public static RegistryKey | getTopLevelKey(String keyName) Get a top level key by name using the top level key Hashtable.
Parameters: keyName - The name of the top level key. | public static void | main(String argv) The main() method is used to test the Registry package. | public static RegistryKey | openSubkey(RegistryKey topKey, String keyName, int access) Open a subkey of a given top level key.
Parameters: topKey - The top level key containing the subkey. Parameters: keyName - The subkey's name. Parameters: access - The access flag for the newly opened key. | public static void | setDllFile(String _dllFile) | public static void | subMain(String argv) The actual main method, which is called for each command. | public static void | usage(String message) Print the usage/help information. |
ERROR_ACCESS_DENIED | final public static int ERROR_ACCESS_DENIED(Code) | | |
ERROR_BADDB | final public static int ERROR_BADDB(Code) | | |
ERROR_BADKEY | final public static int ERROR_BADKEY(Code) | | |
ERROR_CALL_NOT_IMPLEMENTED | final public static int ERROR_CALL_NOT_IMPLEMENTED(Code) | | |
ERROR_CANTOPEN | final public static int ERROR_CANTOPEN(Code) | | |
ERROR_CANTREAD | final public static int ERROR_CANTREAD(Code) | | |
ERROR_CANTWRITE | final public static int ERROR_CANTWRITE(Code) | | |
ERROR_FILE_NOT_FOUND | final public static int ERROR_FILE_NOT_FOUND(Code) | | |
ERROR_INSUFFICIENT_BUFFER | final public static int ERROR_INSUFFICIENT_BUFFER(Code) | | |
ERROR_INVALID_HANDLE | final public static int ERROR_INVALID_HANDLE(Code) | | |
ERROR_INVALID_PARAMETER | final public static int ERROR_INVALID_PARAMETER(Code) | | |
ERROR_KEY_DELETED | final public static int ERROR_KEY_DELETED(Code) | | |
ERROR_LOCK_FAILED | final public static int ERROR_LOCK_FAILED(Code) | | |
ERROR_MORE_DATA | final public static int ERROR_MORE_DATA(Code) | | |
ERROR_NOT_REGISTRY_FILE | final public static int ERROR_NOT_REGISTRY_FILE(Code) | | |
ERROR_NO_MORE_ITEMS | final public static int ERROR_NO_MORE_ITEMS(Code) | | |
ERROR_REGISTRY_CORRUPT | final public static int ERROR_REGISTRY_CORRUPT(Code) | | |
ERROR_REGISTRY_IO_FAILED | final public static int ERROR_REGISTRY_IO_FAILED(Code) | | |
ERROR_REGISTRY_RECOVERED | final public static int ERROR_REGISTRY_RECOVERED(Code) | | |
ERROR_SUCCESS | final public static int ERROR_SUCCESS(Code) | | These are the Registry API error codes, which can
be returned via the RegistryException.
|
ERROR_TRANSFER_TOO_LONG | final public static int ERROR_TRANSFER_TOO_LONG(Code) | | |
HKEY_CLASSES_ROOT | public static RegistryKey HKEY_CLASSES_ROOT(Code) | | The following statics are the top level keys.
Without these, there is no way to get "into"
the registry, since the RegOpenSubkey() call
requires an existing key which contains the
subkey.
|
debugLevel | public boolean debugLevel(Code) | | If true, debug the fv parameters and computation.
|
dllFile | public static String dllFile(Code) | | VAInstall change : add dllFile
VAInstall: dllFile must be set by AbstractInstall
|
exportRegistryKey | public static void exportRegistryKey(String pathName, RegistryKey key, boolean descend) throws java.io.IOException, NoSuchKeyException, RegistryException(Code) | | Export the textual definition for a registry key to a file.
The resulting file can be re-loaded via RegEdit.
Parameters: pathName - The pathname of the file into which to export. Parameters: key - The registry key definition to export. Parameters: descend - If true, descend and export all subkeys. exception: NoSuchKeyException - Thrown by openSubKey(). exception: RegistryException - Any other registry API error. |
getErrorMessage | public static String getErrorMessage(int errCode)(Code) | | Get the description of a Registry error code.
Parameters: errCode - The error code from a RegistryException The description of the error code. |
getTopLevelKey | public static RegistryKey getTopLevelKey(String keyName)(Code) | | Get a top level key by name using the top level key Hashtable.
Parameters: keyName - The name of the top level key. The top level RegistryKey, or null if unknown keyName. See Also: topLevelKeys |
main | public static void main(String argv)(Code) | | The main() method is used to test the Registry package.
|
openSubkey | public static RegistryKey openSubkey(RegistryKey topKey, String keyName, int access)(Code) | | Open a subkey of a given top level key.
Parameters: topKey - The top level key containing the subkey. Parameters: keyName - The subkey's name. Parameters: access - The access flag for the newly opened key. The newly opened RegistryKey. See Also: RegistryKey |
setDllFile | public static void setDllFile(String _dllFile)(Code) | | |
subMain | public static void subMain(String argv)(Code) | | The actual main method, which is called for each command.
|
usage | public static void usage(String message)(Code) | | Print the usage/help information.
|
|
|