Class RemoteRegistryKey
- java.lang.Object
-
- com.github.robtimus.os.windows.registry.RegistryKey
-
- com.github.robtimus.os.windows.registry.RemoteRegistryKey
-
- All Implemented Interfaces:
AutoCloseable
,Comparable<RegistryKey>
public abstract class RemoteRegistryKey extends RegistryKey implements AutoCloseable
A representation of registry keys on a remote machine.- Author:
- Rob Spoor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteRegistryKey.Connector
A class for connecting to a registry key on a remote machine.-
Nested classes/interfaces inherited from class com.github.robtimus.os.windows.registry.RegistryKey
RegistryKey.Attributes, RegistryKey.Handle, RegistryKey.HandleOption, RegistryKey.TraverseOption
-
-
Field Summary
Fields Modifier and Type Field Description static RemoteRegistryKey.Connector
HKEY_LOCAL_MACHINE
A connector for connecting to the HKEY_LOCAL_MACHINE root key on a remote machine.static RemoteRegistryKey.Connector
HKEY_USERS
A connector for connecting to the HKEY_USERS root key on a remote machine.-
Fields inherited from class com.github.robtimus.os.windows.registry.RegistryKey
HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
close()
Closes the connection to the remote registry key.-
Methods inherited from class com.github.robtimus.os.windows.registry.RegistryKey
attributes, compareTo, create, createIfNotExists, delete, deleteIfExists, deleteValue, deleteValueIfExists, equals, exists, findDWordValue, findQWordValue, findStringValue, findValue, getDWordValue, getQWordValue, getStringValue, getValue, handle, handle, hashCode, ifAccessible, ifAccessible, ifExists, ifExists, isAccessible, isRoot, lastWriteTime, name, parent, path, renameTo, resolve, root, setValue, subKeys, toString, traverse, traverse, values, values
-
-
-
-
Field Detail
-
HKEY_LOCAL_MACHINE
public static final RemoteRegistryKey.Connector HKEY_LOCAL_MACHINE
A connector for connecting to the HKEY_LOCAL_MACHINE root key on a remote machine.
-
HKEY_USERS
public static final RemoteRegistryKey.Connector HKEY_USERS
A connector for connecting to the HKEY_USERS root key on a remote machine.
-
-
Method Detail
-
close
public abstract void close()
Closes the connection to the remote registry key.- Specified by:
close
in interfaceAutoCloseable
- Throws:
RegistryException
- If the remote registry key could not be closed.
-
-