Package hudson.util.jna
Class RegistryKey
java.lang.Object
hudson.util.jna.RegistryKey
- All Implemented Interfaces:
AutoCloseable
Represents a Win32 registry key.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RegistryKey
static final RegistryKey
static final RegistryKey
static final RegistryKey
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
delete()
Deletes this key (and disposes the key.)void
deleteValue
(String valueName) void
dispose()
int
getIntValue
(String valueName) Read an int value.getStringValue
(String valueName) Get all sub keys of a key.Get all values under a key.openReadonly
(String subKeyName) void
Writes a DWORD value.void
Writes a String value.boolean
valueExists
(String name) Does a specified value exist?
-
Field Details
-
CLASSES_ROOT
-
CURRENT_USER
-
LOCAL_MACHINE
-
USERS
-
-
Method Details
-
getStringValue
-
getIntValue
Read an int value. -
deleteValue
-
setValue
Writes a String value. -
setValue
Writes a DWORD value. -
valueExists
Does a specified value exist? -
delete
public void delete()Deletes this key (and disposes the key.) -
getSubKeys
Get all sub keys of a key.- Returns:
- array with all sub key names
-
open
-
openReadonly
-
open
-
getValues
Get all values under a key.- Returns:
- TreeMap with name and value pairs
-
dispose
public void dispose() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-