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.
-
debugLevel
- If true, debug the fv parameters and computation.
-
ERROR_ACCESS_DENIED
-
-
ERROR_BADDB
-
-
ERROR_BADKEY
-
-
ERROR_CALL_NOT_IMPLEMENTED
-
-
ERROR_CANTOPEN
-
-
ERROR_CANTREAD
-
-
ERROR_CANTWRITE
-
-
ERROR_FILE_NOT_FOUND
-
-
ERROR_INSUFFICIENT_BUFFER
-
-
ERROR_INVALID_HANDLE
-
-
ERROR_INVALID_PARAMETER
-
-
ERROR_KEY_DELETED
-
-
ERROR_LOCK_FAILED
-
-
ERROR_MORE_DATA
-
-
ERROR_NO_MORE_ITEMS
-
-
ERROR_NOT_REGISTRY_FILE
-
-
ERROR_REGISTRY_CORRUPT
-
-
ERROR_REGISTRY_IO_FAILED
-
-
ERROR_REGISTRY_RECOVERED
-
-
ERROR_SUCCESS
- These are the Registry API error codes, which can
be returned via the RegistryException.
-
ERROR_TRANSFER_TOO_LONG
-
-
HKEY_CLASSES_ROOT
- The following statics are the top level keys.
-
HKEY_CURRENT_CONFIG
-
-
HKEY_CURRENT_USER
-
-
HKEY_DYN_DATA
-
-
HKEY_LOCAL_MACHINE
-
-
HKEY_PERFORMANCE_DATA
-
-
HKEY_USERS
-
-
Registry()
-
-
exportRegistryKey(String, RegistryKey, boolean)
- Export the textual definition for a registry key to a file.
-
getErrorMessage(int)
- Get the description of a Registry error code.
-
getTopLevelKey(String)
- Get a top level key by name using the top level key Hashtable.
-
main(String[])
- The main() method is used to test the Registry package.
-
openSubkey(RegistryKey, String, int)
- Open a subkey of a given top level key.
-
subMain(String[])
- The actual main method, which is called for each command.
-
usage(String)
- Print the usage/help information.
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.
HKEY_CURRENT_USER
public static RegistryKey HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
public static RegistryKey HKEY_LOCAL_MACHINE
HKEY_USERS
public static RegistryKey HKEY_USERS
HKEY_PERFORMANCE_DATA
public static RegistryKey HKEY_PERFORMANCE_DATA
HKEY_CURRENT_CONFIG
public static RegistryKey HKEY_CURRENT_CONFIG
HKEY_DYN_DATA
public static RegistryKey HKEY_DYN_DATA
ERROR_SUCCESS
public static final int ERROR_SUCCESS
- These are the Registry API error codes, which can
be returned via the RegistryException.
ERROR_FILE_NOT_FOUND
public static final int ERROR_FILE_NOT_FOUND
ERROR_ACCESS_DENIED
public static final int ERROR_ACCESS_DENIED
ERROR_INVALID_HANDLE
public static final int ERROR_INVALID_HANDLE
ERROR_INVALID_PARAMETER
public static final int ERROR_INVALID_PARAMETER
ERROR_CALL_NOT_IMPLEMENTED
public static final int ERROR_CALL_NOT_IMPLEMENTED
ERROR_INSUFFICIENT_BUFFER
public static final int ERROR_INSUFFICIENT_BUFFER
ERROR_LOCK_FAILED
public static final int ERROR_LOCK_FAILED
ERROR_TRANSFER_TOO_LONG
public static final int ERROR_TRANSFER_TOO_LONG
ERROR_MORE_DATA
public static final int ERROR_MORE_DATA
ERROR_NO_MORE_ITEMS
public static final int ERROR_NO_MORE_ITEMS
ERROR_BADDB
public static final int ERROR_BADDB
ERROR_BADKEY
public static final int ERROR_BADKEY
ERROR_CANTOPEN
public static final int ERROR_CANTOPEN
ERROR_CANTREAD
public static final int ERROR_CANTREAD
ERROR_CANTWRITE
public static final int ERROR_CANTWRITE
ERROR_REGISTRY_RECOVERED
public static final int ERROR_REGISTRY_RECOVERED
ERROR_REGISTRY_CORRUPT
public static final int ERROR_REGISTRY_CORRUPT
ERROR_REGISTRY_IO_FAILED
public static final int ERROR_REGISTRY_IO_FAILED
ERROR_NOT_REGISTRY_FILE
public static final int ERROR_NOT_REGISTRY_FILE
ERROR_KEY_DELETED
public static final int ERROR_KEY_DELETED
debugLevel
public boolean debugLevel
- If true, debug the fv parameters and computation.
Registry
public Registry()
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
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
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.
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.
main
public static void main(String argv[])
- The main() method is used to test the Registry package.
usage
public static void usage(String message)
- Print the usage/help information.
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