All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ice.jni.registry.Registry

java.lang.Object
   |
   +----com.ice.jni.registry.Registry

public class Registry
extends Object
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.


Variable Index

 o debugLevel
If true, debug the fv parameters and computation.
 o ERROR_ACCESS_DENIED
 o ERROR_BADDB
 o ERROR_BADKEY
 o ERROR_CALL_NOT_IMPLEMENTED
 o ERROR_CANTOPEN
 o ERROR_CANTREAD
 o ERROR_CANTWRITE
 o ERROR_FILE_NOT_FOUND
 o ERROR_INSUFFICIENT_BUFFER
 o ERROR_INVALID_HANDLE
 o ERROR_INVALID_PARAMETER
 o ERROR_KEY_DELETED
 o ERROR_LOCK_FAILED
 o ERROR_MORE_DATA
 o ERROR_NO_MORE_ITEMS
 o ERROR_NOT_REGISTRY_FILE
 o ERROR_REGISTRY_CORRUPT
 o ERROR_REGISTRY_IO_FAILED
 o ERROR_REGISTRY_RECOVERED
 o ERROR_SUCCESS
These are the Registry API error codes, which can be returned via the RegistryException.
 o ERROR_TRANSFER_TOO_LONG
 o HKEY_CLASSES_ROOT
The following statics are the top level keys.
 o HKEY_CURRENT_CONFIG
 o HKEY_CURRENT_USER
 o HKEY_DYN_DATA
 o HKEY_LOCAL_MACHINE
 o HKEY_PERFORMANCE_DATA
 o HKEY_USERS

Constructor Index

 o Registry()

Method Index

 o exportRegistryKey(String, RegistryKey, boolean)
Export the textual definition for a registry key to a file.
 o getErrorMessage(int)
Get the description of a Registry error code.
 o getTopLevelKey(String)
Get a top level key by name using the top level key Hashtable.
 o main(String[])
The main() method is used to test the Registry package.
 o openSubkey(RegistryKey, String, int)
Open a subkey of a given top level key.
 o subMain(String[])
The actual main method, which is called for each command.
 o usage(String)
Print the usage/help information.

Variables

 o HKEY_CLASSES_ROOT
 public static RegistryKey HKEY_CLASSES_ROOT
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.

 o HKEY_CURRENT_USER
 public static RegistryKey HKEY_CURRENT_USER
 o HKEY_LOCAL_MACHINE
 public static RegistryKey HKEY_LOCAL_MACHINE
 o HKEY_USERS
 public static RegistryKey HKEY_USERS
 o HKEY_PERFORMANCE_DATA
 public static RegistryKey HKEY_PERFORMANCE_DATA
 o HKEY_CURRENT_CONFIG
 public static RegistryKey HKEY_CURRENT_CONFIG
 o HKEY_DYN_DATA
 public static RegistryKey HKEY_DYN_DATA
 o ERROR_SUCCESS
 public static final int ERROR_SUCCESS
These are the Registry API error codes, which can be returned via the RegistryException.

 o ERROR_FILE_NOT_FOUND
 public static final int ERROR_FILE_NOT_FOUND
 o ERROR_ACCESS_DENIED
 public static final int ERROR_ACCESS_DENIED
 o ERROR_INVALID_HANDLE
 public static final int ERROR_INVALID_HANDLE
 o ERROR_INVALID_PARAMETER
 public static final int ERROR_INVALID_PARAMETER
 o ERROR_CALL_NOT_IMPLEMENTED
 public static final int ERROR_CALL_NOT_IMPLEMENTED
 o ERROR_INSUFFICIENT_BUFFER
 public static final int ERROR_INSUFFICIENT_BUFFER
 o ERROR_LOCK_FAILED
 public static final int ERROR_LOCK_FAILED
 o ERROR_TRANSFER_TOO_LONG
 public static final int ERROR_TRANSFER_TOO_LONG
 o ERROR_MORE_DATA
 public static final int ERROR_MORE_DATA
 o ERROR_NO_MORE_ITEMS
 public static final int ERROR_NO_MORE_ITEMS
 o ERROR_BADDB
 public static final int ERROR_BADDB
 o ERROR_BADKEY
 public static final int ERROR_BADKEY
 o ERROR_CANTOPEN
 public static final int ERROR_CANTOPEN
 o ERROR_CANTREAD
 public static final int ERROR_CANTREAD
 o ERROR_CANTWRITE
 public static final int ERROR_CANTWRITE
 o ERROR_REGISTRY_RECOVERED
 public static final int ERROR_REGISTRY_RECOVERED
 o ERROR_REGISTRY_CORRUPT
 public static final int ERROR_REGISTRY_CORRUPT
 o ERROR_REGISTRY_IO_FAILED
 public static final int ERROR_REGISTRY_IO_FAILED
 o ERROR_NOT_REGISTRY_FILE
 public static final int ERROR_NOT_REGISTRY_FILE
 o ERROR_KEY_DELETED
 public static final int ERROR_KEY_DELETED
 o debugLevel
 public boolean debugLevel
If true, debug the fv parameters and computation.

Constructors

 o Registry
 public Registry()

Methods

 o getTopLevelKey
 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.
Returns:
The top level RegistryKey, or null if unknown keyName.
See Also:
topLevelKeys
 o openSubkey
 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.
keyName - The subkey's name.
access - The access flag for the newly opened key.
Returns:
The newly opened RegistryKey.
See Also:
RegistryKey
 o getErrorMessage
 public static String getErrorMessage(int errCode)
Get the description of a Registry error code.

Parameters:
errCode - The error code from a RegistryException
Returns:
The description of the error code.
 o exportRegistryKey
 public static void exportRegistryKey(String pathName,
                                      RegistryKey key,
                                      boolean descend) throws IOException, NoSuchKeyException, RegistryException
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.
key - The registry key definition to export.
descend - If true, descend and export all subkeys.
Throws: NoSuchKeyException
Thrown by openSubKey().
Throws: RegistryException
Any other registry API error.
 o main
 public static void main(String argv[])
The main() method is used to test the Registry package.

 o usage
 public static void usage(String message)
Print the usage/help information.

 o subMain
 public static void subMain(String argv[])
The actual main method, which is called for each command.


All Packages  Class Hierarchy  This Package  Previous  Next  Index