Class DefaultWindowsRegistry
java.lang.Object
net.rubygrapefruit.platform.internal.DefaultWindowsRegistry
- All Implemented Interfaces:
NativeIntegration
,WindowsRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.rubygrapefruit.platform.WindowsRegistry
WindowsRegistry.Key
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStringValue
(WindowsRegistry.Key key, String subkey, String valueName) Returns a registry key value as a String.getSubkeys
(WindowsRegistry.Key key, String subkey) Lists the subkeys of a registry key.getValueNames
(WindowsRegistry.Key key, String subkey) Lists the value names of a registry key.
-
Constructor Details
-
DefaultWindowsRegistry
public DefaultWindowsRegistry()
-
-
Method Details
-
getStringValue
public String getStringValue(WindowsRegistry.Key key, String subkey, String valueName) throws NativeException Description copied from interface:WindowsRegistry
Returns a registry key value as a String.- Specified by:
getStringValue
in interfaceWindowsRegistry
- Throws:
NativeException
- On failure.MissingRegistryEntryException
- When the requested key or value does not exist.
-
getSubkeys
Description copied from interface:WindowsRegistry
Lists the subkeys of a registry key.- Specified by:
getSubkeys
in interfaceWindowsRegistry
- Throws:
NativeException
- On failure.MissingRegistryEntryException
- When the requested key does not exist.
-
getValueNames
Description copied from interface:WindowsRegistry
Lists the value names of a registry key.- Specified by:
getValueNames
in interfaceWindowsRegistry
- Throws:
NativeException
- On failure.MissingRegistryEntryException
- When the requested key does not exist.
-