public class RegistryKey extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
static RegistryKey |
CLASSES_ROOT |
static RegistryKey |
CURRENT_USER |
static RegistryKey |
LOCAL_MACHINE |
static RegistryKey |
USERS |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete()
Deletes this key (and disposes the key.)
|
void |
deleteValue(String valueName) |
void |
dispose() |
protected void |
finalize() |
int |
getIntValue(String valueName)
Read an int value.
|
String |
getStringValue(String valueName) |
Collection<String> |
getSubKeys()
Get all sub keys of a key.
|
TreeMap<String,Object> |
getValues()
Get all values under a key.
|
RegistryKey |
open(String subKeyName) |
RegistryKey |
open(String subKeyName,
int access) |
RegistryKey |
openReadonly(String subKeyName) |
void |
setValue(String name,
int value)
Writes a DWORD value.
|
void |
setValue(String name,
String value)
Writes a String value.
|
boolean |
valueExists(String name)
Does a specified value exist?
|
public static final RegistryKey CLASSES_ROOT
public static final RegistryKey CURRENT_USER
public static final RegistryKey LOCAL_MACHINE
public static final RegistryKey USERS
public int getIntValue(String valueName)
public void deleteValue(String valueName)
public void setValue(String name, int value)
public boolean valueExists(String name)
public void delete()
public Collection<String> getSubKeys()
public RegistryKey open(String subKeyName)
public RegistryKey openReadonly(String subKeyName)
public RegistryKey open(String subKeyName, int access)
public TreeMap<String,Object> getValues()
protected void finalize() throws Throwable
public void dispose()
public void close()
close
in interface AutoCloseable
Copyright © 2004–2021. All rights reserved.