public class Registry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Registry.ERROR |
static class |
Registry.HKEY |
static class |
Registry.WOW |
Modifier and Type | Method and Description |
---|---|
static boolean |
available() |
static void |
createKey(Registry.HKEY hkey,
java.lang.String key)
Create a key
|
static void |
deleteKey(Registry.HKEY hkey,
java.lang.String key)
Delete a given key
|
static void |
deleteValue(Registry.HKEY hkey,
java.lang.String key,
java.lang.String valueName,
Registry.WOW wow)
delete a single value within a given key
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
readString(Registry.HKEY hkey,
java.lang.String key,
java.lang.String valueName,
Registry.WOW wow)
Read a value from key and value name
|
static java.util.List<java.lang.String> |
readStringSubKeys(Registry.HKEY hkey,
java.lang.String key,
Registry.WOW wow)
Read the value names from a given key
|
static java.util.Map<java.lang.String,java.lang.String> |
readStringValues(Registry.HKEY hkey,
java.lang.String key,
Registry.WOW wow)
Read value(s) and value name(s) from given key
|
static void |
writeStringValue(Registry.HKEY hkey,
java.lang.String key,
java.lang.String valueName,
java.lang.String value,
Registry.WOW wow)
Write a value in a given key/value name
|
public static void main(java.lang.String[] args)
public static boolean available()
public static java.lang.String readString(Registry.HKEY hkey, java.lang.String key, java.lang.String valueName, Registry.WOW wow)
hkey
- CURRENT_USER or LOCAL_MACHINEkey
- the key to read fromvalueName
- the name of the value to readwow
- CURRENT, X64 or X32 for current engine's, explicit 64 or 32 bit subsystem's valuepublic static java.util.Map<java.lang.String,java.lang.String> readStringValues(Registry.HKEY hkey, java.lang.String key, Registry.WOW wow)
hkey
- CURRENT_USER or LOCAL_MACHINEkey
- the key to read fromwow
- CURRENT, X64 or X32 for current engine's, explicit 64 or 32 bit subsystem's valuepublic static java.util.List<java.lang.String> readStringSubKeys(Registry.HKEY hkey, java.lang.String key, Registry.WOW wow)
hkey
- HKEY_CURRENT_USER/HKEY_LOCAL_MACHINEkey
- the key to read all value names fromwow
- CURRENT, X64 or X32 for current engine's, explicit 64 or 32 bit subsystem's valuepublic static void createKey(Registry.HKEY hkey, java.lang.String key)
hkey
- HKEY_CURRENT_USER/HKEY_LOCAL_MACHINEkey
- the key to createpublic static void writeStringValue(Registry.HKEY hkey, java.lang.String key, java.lang.String valueName, java.lang.String value, Registry.WOW wow)
hkey
- HKEY_CURRENT_USER/HKEY_LOCAL_MACHINEkey
- the key to write tovalueName
- the value name to write tovalue
- the value to writewow
- CURRENT, X64 or X32 for current engine's, explicit 64 or 32 bit subsystem's valuepublic static void deleteKey(Registry.HKEY hkey, java.lang.String key)
hkey
- HKEY_CURRENT_USER/HKEY_LOCAL_MACHINEkey
- the key to delete (with all values inside)public static void deleteValue(Registry.HKEY hkey, java.lang.String key, java.lang.String valueName, Registry.WOW wow)
hkey
- CURRENT_USER or LOCAL_MACHINEkey
- the key under which to delete valueNamevalueName
- the valueName to deletewow
- CURRENT, X64 or X32 for current engine's, explicit 64 or 32 bit subsystem's valueCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.