Class DefaultWindowsRegistry
- java.lang.Object
-
- net.rubygrapefruit.platform.internal.DefaultWindowsRegistry
-
- All Implemented Interfaces:
NativeIntegration,WindowsRegistry
public class DefaultWindowsRegistry extends java.lang.Object implements WindowsRegistry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.rubygrapefruit.platform.WindowsRegistry
WindowsRegistry.Key
-
-
Constructor Summary
Constructors Constructor Description DefaultWindowsRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetStringValue(WindowsRegistry.Key key, java.lang.String subkey, java.lang.String valueName)Returns a registry key value as a String.java.util.List<java.lang.String>getSubkeys(WindowsRegistry.Key key, java.lang.String subkey)Lists the subkeys of a registry key.java.util.List<java.lang.String>getValueNames(WindowsRegistry.Key key, java.lang.String subkey)Lists the value names of a registry key.
-
-
-
Method Detail
-
getStringValue
public java.lang.String getStringValue(WindowsRegistry.Key key, java.lang.String subkey, java.lang.String valueName) throws NativeException
Description copied from interface:WindowsRegistryReturns a registry key value as a String.- Specified by:
getStringValuein interfaceWindowsRegistry- Throws:
NativeException- On failure.MissingRegistryEntryException- When the requested key or value does not exist.
-
getSubkeys
public java.util.List<java.lang.String> getSubkeys(WindowsRegistry.Key key, java.lang.String subkey) throws NativeException
Description copied from interface:WindowsRegistryLists the subkeys of a registry key.- Specified by:
getSubkeysin interfaceWindowsRegistry- Throws:
NativeException- On failure.MissingRegistryEntryException- When the requested key does not exist.
-
getValueNames
public java.util.List<java.lang.String> getValueNames(WindowsRegistry.Key key, java.lang.String subkey) throws NativeException
Description copied from interface:WindowsRegistryLists the value names of a registry key.- Specified by:
getValueNamesin interfaceWindowsRegistry- Throws:
NativeException- On failure.MissingRegistryEntryException- When the requested key does not exist.
-
-