Class Registry


  • public class Registry
    extends java.lang.Object
    Read and Write to Windows registry
    • Constructor Summary

      Constructors 
      Constructor Description
      Registry()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String key)
      Delete a value
      boolean exists​(java.lang.String key)
      Check if value exists
      <T> T read​(java.lang.String key)
      Read a value from the registry
      void write​(java.lang.String key, java.lang.Object value)
      Write a value from the registry
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Registry

        public Registry()
    • Method Detail

      • read

        public <T> T read​(java.lang.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​(java.lang.String key,
                          java.lang.Object value)
        Write a value from the registry
        Parameters:
        key - The key
        value - The value
      • delete

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

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