|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.uruma.util.win32.RegistryUtil
public class RegistryUtil
Windows レジストリアクセスに関するユーティリティクラスです。
| フィールドの概要 | |
|---|---|
static int |
HKEY_CLASSES_ROOT
HKEY_CLASSES_ROOT を表すハンドルです。 |
static int |
HKEY_CURRENT_USER
HKEY_CURRENT_USER を表すハンドルです。 |
static int |
HKEY_LOCAL_MACHINE
HKEY_LOCAL_MACHINE を表すハンドルです。 |
| メソッドの概要 | |
|---|---|
static String |
getRegistryValue(int hKey,
String entry)
レジストリから規定値を読み込んで返します。 |
static String |
getRegistryValue(int hKey,
String entry,
String key)
レジストリから値を読み込んで返します。 |
static void |
regCloseKey(RegistryHandle handle)
レジストリをクローズします。 |
static RegistryHandle |
regOpenKey(int hKey,
String entry)
レジストリをオープンします。 |
static String |
regQueryValue(RegistryHandle handle,
String valueName)
レジストリから値を読み込みます。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static int HKEY_LOCAL_MACHINE
HKEY_LOCAL_MACHINE を表すハンドルです。
public static int HKEY_CLASSES_ROOT
HKEY_CLASSES_ROOT を表すハンドルです。
public static int HKEY_CURRENT_USER
HKEY_CURRENT_USER を表すハンドルです。
| メソッドの詳細 |
|---|
public static RegistryHandle regOpenKey(int hKey,
String entry)
hKey - ハンドル(HKEY_LOCAL_MACHINE, HKEY_CLASSES_ROOT,
HKEY_CURRENT_USER のいずれかを指定)entry - レジストリエントリ
public static void regCloseKey(RegistryHandle handle)
handle - オープンされたレジストリハンドル
public static String regQueryValue(RegistryHandle handle,
String valueName)
handle - オープンされたレジストリハンドルvalueName - 読み込む値の名称
public static String getRegistryValue(int hKey,
String entry,
String key)
hKey - ハンドル(HKEY_LOCAL_MACHINE, HKEY_CLASSES_ROOT,
HKEY_CURRENT_USER のいずれかを指定)entry - レジストリエントリkey - キー
null
public static String getRegistryValue(int hKey,
String entry)
hKey - ハンドル(HKEY_LOCAL_MACHINE, HKEY_CLASSES_ROOT,
HKEY_CURRENT_USER のいずれかを指定)entry - レジストリエントリ
null
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||