Class Registry

java.lang.Object
com.github.robtimus.os.windows.registry.Registry
Direct Known Subclasses:
LocalRegistry, RemoteRegistry

public abstract sealed class Registry extends Object permits LocalRegistry, RemoteRegistry
A representation of a local or remote Windows registry.
Author:
Rob Spoor
Since:
2.0
  • Method Details

    • local

      public static LocalRegistry local()
      Returns a representation of the local Windows registry.
      Returns:
      A representation of the local Windows registry.
    • at

      public static RemoteRegistry.Connector at(String machineName)
      Returns an object that can be used to connect to the registry on a remote machine.
      Parameters:
      machineName - The machine name. This cannot be an IP address but must be a resolvable host name.
      Returns:
      An object that can be used to connect to the registry on the given remote machine.
      Throws:
      NullPointerException - If the given machine name is null.