public class WindowsRegistry extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentUserKeyName(String subkey,
int index)
Given a subkey of HKEY_CURRENT_USER, and an index (starting from 0)
to the key's array of sub keys, return the name of the indexed key.
|
String |
getCurrentUserValue(String subkey,
String name)
Gets the registry value for the subkey of HKEY_CURRENT_USER with the
given name.
|
String |
getCurrentUserValueName(String subkey,
int index)
Given a subkey of HKEY_CURRENT_USER, and an index (starting from 0)
to the key's array of values, return the name of the indexed value.
|
String |
getLocalMachineKeyName(String subkey,
int index)
Given a subkey of HKEY_LOCAL_MACHINE, and an index (starting from 0)
to the key's array of sub keys, return the name of the indexed key.
|
String |
getLocalMachineValue(String subkey,
String name)
Gets the registry value for the subkey of HKEY_LOCAL_MACHINE with the
given name.
|
String |
getLocalMachineValueName(String subkey,
int index)
Given a subkey of HKEY_LOCAL_MACHINE, and an index (starting from 0)
to the key's array of values, return the name of the indexed value.
|
static WindowsRegistry |
getRegistry() |
public static WindowsRegistry getRegistry()
public String getLocalMachineValue(String subkey, String name)
subkey - subkey of HKEY_LOCAL_MACHINEname - name of the registry valuepublic String getLocalMachineValueName(String subkey, int index)
subkey - subkey of HKEY_LOCAL_MACHINEindex - index to the subkey's array of values, starting from 0.public String getLocalMachineKeyName(String subkey, int index)
subkey - subkey of HKEY_CURRENT_USERindex - index to the subkey's array of values, starting from 0.public String getCurrentUserValue(String subkey, String name)
subkey - subkey of HKEY_CURRENT_USERname - name of the registry valuepublic String getCurrentUserValueName(String subkey, int index)
subkey - subkey of HKEY_CURRENT_USERindex - index to the subkey's array of values, starting from 0.public String getCurrentUserKeyName(String subkey, int index)
subkey - subkey of HKEY_CURRENT_USERindex - index to the subkey's array of values, starting from 0.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.