类 WindowsRegistry

    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      static WindowsRegistry currentUser()
      Get Windows Registry HKEY_CURRENT_USER Singleton
      void flush​(java.lang.String relativePath)
      Flush specified registry item in relative path
      java.lang.String get​(java.lang.String relativePath, java.lang.String name)
      Get the value of registry item in specified relative path
      void remove​(java.lang.String relativePath, java.lang.String name)
      remove specified registry item in relative path
      void set​(java.lang.String relativePath, java.lang.String name, java.lang.String value)
      Set specified registry item in relative path
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • currentUser

        @Nonnull
        public static WindowsRegistry currentUser()
                                           throws java.lang.UnsupportedOperationException
        Get Windows Registry HKEY_CURRENT_USER Singleton
        返回:
        non-null return
        抛出:
        java.lang.UnsupportedOperationException - If Non-Windows OS executes current method
      • set

        public void set​(java.lang.String relativePath,
                        java.lang.String name,
                        java.lang.String value)
        Set specified registry item in relative path
        参数:
        relativePath - relative path
        name - registry item name
        value - the value of registry item
      • get

        @Nullable
        public java.lang.String get​(java.lang.String relativePath,
                                    java.lang.String name)
        Get the value of registry item in specified relative path
        参数:
        relativePath - relative path
        name - registry item name
        返回:
        null if not found
      • remove

        public void remove​(java.lang.String relativePath,
                           java.lang.String name)
        remove specified registry item in relative path
        参数:
        relativePath - relative path
        name - registry item name
      • flush

        public void flush​(java.lang.String relativePath)
        Flush specified registry item in relative path
        参数:
        relativePath - 路径