类 WindowsRegistry
- java.lang.Object
-
- io.microsphere.util.os.windows.WindowsRegistry
-
public final class WindowsRegistry extends java.lang.Object
- 从以下版本开始:
- 1.0.0
- 版本:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
WindowsRegistry
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static WindowsRegistry
currentUser()
Get Windows Registry HKEY_CURRENT_USER Singletonvoid
flush(java.lang.String relativePath)
Flush specified registry item in relative pathjava.lang.String
get(java.lang.String relativePath, java.lang.String name)
Get the value of registry item in specified relative pathvoid
remove(java.lang.String relativePath, java.lang.String name)
remove specified registry item in relative pathvoid
set(java.lang.String relativePath, java.lang.String name, java.lang.String value)
Set specified registry item in relative path
-
-
-
方法详细资料
-
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 pathname
- registry item namevalue
- 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 pathname
- 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 pathname
- registry item name
-
flush
public void flush(java.lang.String relativePath)
Flush specified registry item in relative path- 参数:
relativePath
- 路径
-
-