|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ice.jni.registry.Registry
public class Registry
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.
| Constructor Summary | |
|---|---|
Registry()
|
|
| Method Summary | |
|---|---|
static void |
dumpHexData(java.io.PrintStream out,
java.lang.String title,
byte[] buf,
int numBytes)
|
static void |
dumpHexData(java.io.PrintWriter out,
java.lang.String title,
byte[] buf,
int offset,
int numBytes)
|
static void |
exportRegistryKey(java.lang.String pathName,
RegistryKey key,
boolean descend)
Export the textual definition for a registry key to a file. |
static java.lang.String |
getErrorMessage(int errCode)
Get the description of a Registry error code. |
static RegistryKey |
getTopLevelKey(java.lang.String keyName)
Get a top level key by name using the top level key Hashtable. |
static void |
main(java.lang.String[] argv)
The main() method is used to test the Registry package. |
static RegistryKey |
openSubkey(RegistryKey topKey,
java.lang.String keyName,
int access)
Open a subkey of a given top level key. |
static java.lang.String[] |
parseArgumentString(java.lang.String argStr)
|
static java.util.Vector |
parseArgumentVector(java.lang.String argStr)
|
static java.lang.String[] |
splitString(java.lang.String splitStr,
java.lang.String delim)
Split a string into a string array containing the substrings between the delimiters. |
static void |
subMain(java.lang.String[] argv)
The actual main method, which is called for each command. |
static void |
usage(java.lang.String message)
Print the usage/help information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static RegistryKey HKEY_CLASSES_ROOT
public static RegistryKey HKEY_CURRENT_USER
public static RegistryKey HKEY_LOCAL_MACHINE
public static RegistryKey HKEY_USERS
public static RegistryKey HKEY_PERFORMANCE_DATA
public static RegistryKey HKEY_CURRENT_CONFIG
public static RegistryKey HKEY_DYN_DATA
public static final int ERROR_SUCCESS
public static final int ERROR_FILE_NOT_FOUND
public static final int ERROR_ACCESS_DENIED
public static final int ERROR_INVALID_HANDLE
public static final int ERROR_INVALID_PARAMETER
public static final int ERROR_CALL_NOT_IMPLEMENTED
public static final int ERROR_INSUFFICIENT_BUFFER
public static final int ERROR_LOCK_FAILED
public static final int ERROR_TRANSFER_TOO_LONG
public static final int ERROR_MORE_DATA
public static final int ERROR_NO_MORE_ITEMS
public static final int ERROR_BADDB
public static final int ERROR_BADKEY
public static final int ERROR_CANTOPEN
public static final int ERROR_CANTREAD
public static final int ERROR_CANTWRITE
public static final int ERROR_REGISTRY_RECOVERED
public static final int ERROR_REGISTRY_CORRUPT
public static final int ERROR_REGISTRY_IO_FAILED
public static final int ERROR_NOT_REGISTRY_FILE
public static final int ERROR_KEY_DELETED
public boolean debugLevel
| Constructor Detail |
|---|
public Registry()
| Method Detail |
|---|
public static RegistryKey getTopLevelKey(java.lang.String keyName)
keyName - The name of the top level key.
public static RegistryKey openSubkey(RegistryKey topKey,
java.lang.String keyName,
int access)
topKey - The top level key containing the subkey.keyName - The subkey's name.access - The access flag for the newly opened key.
RegistryKeypublic static java.lang.String getErrorMessage(int errCode)
errCode - The error code from a RegistryException
public static void exportRegistryKey(java.lang.String pathName,
RegistryKey key,
boolean descend)
throws java.io.IOException,
NoSuchKeyException,
RegistryException
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.
NoSuchKeyException - Thrown by openSubKey().
RegistryException - Any other registry API error.
java.io.IOExceptionpublic static void main(java.lang.String[] argv)
public static void usage(java.lang.String message)
public static void subMain(java.lang.String[] argv)
public static void dumpHexData(java.io.PrintStream out,
java.lang.String title,
byte[] buf,
int numBytes)
public static void dumpHexData(java.io.PrintWriter out,
java.lang.String title,
byte[] buf,
int offset,
int numBytes)
public static java.lang.String[] splitString(java.lang.String splitStr,
java.lang.String delim)
vectorString().
public static java.lang.String[] parseArgumentString(java.lang.String argStr)
public static java.util.Vector parseArgumentVector(java.lang.String argStr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||