Class RegistryKey

  • All Implemented Interfaces:
    AutoCloseable

    public class RegistryKey
    extends Object
    implements AutoCloseable
    Represents a Win32 registry key.
    Author:
    Kohsuke Kawaguchi
    • Method Detail

      • getStringValue

        public String getStringValue​(String valueName)
      • getIntValue

        public int getIntValue​(String valueName)
        Read an int value.
      • deleteValue

        public void deleteValue​(String valueName)
      • setValue

        public void setValue​(String name,
                             String value)
        Writes a String value.
      • setValue

        public void setValue​(String name,
                             int value)
        Writes a DWORD value.
      • valueExists

        public boolean valueExists​(String name)
        Does a specified value exist?
      • delete

        public void delete()
        Deletes this key (and disposes the key.)
      • getSubKeys

        public Collection<String> getSubKeys()
        Get all sub keys of a key.
        Returns:
        array with all sub key names
      • getValues

        public TreeMap<String,​Object> getValues()
        Get all values under a key.
        Returns:
        TreeMap with name and value pairs
      • dispose

        public void dispose()