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
FieldsModifier and TypeFieldDescriptionstatic final RegistryKeystatic final RegistryKeystatic final RegistryKeystatic final RegistryKey -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddelete()Deletes this key (and disposes the key.)voiddeleteValue(String valueName) voiddispose()intgetIntValue(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) voidWrites a DWORD value.voidWrites a String value.booleanvalueExists(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:
closein interfaceAutoCloseable
-