Class Registry

java.lang.Object
com.mku.win.registry.Registry

public class Registry extends Object
Read and Write to Windows registry
  • Constructor Details

    • Registry

      public Registry()
      Initialize a registry helper
  • Method Details

    • read

      public <T> T read(String key)
      Read a value from the registry
      Type Parameters:
      T - The class value
      Parameters:
      key - The key
      Returns:
      The value
    • write

      public void write(String key, Object value)
      Write a value from the registry
      Parameters:
      key - The key
      value - The value
    • delete

      public void delete(String key)
      Delete a value
      Parameters:
      key - The key
    • exists

      public boolean exists(String key)
      Check if value exists
      Parameters:
      key - The key
      Returns:
      True if value exists