jdk/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java
/*
* Send "properties" command to target VM
*/
public Properties getSystemProperties() throws IOException {
{- -------------------------------------------
(1) (変数宣言など)
---------------------------------------- -}
InputStream in = null;
Properties props = new Properties();
{- -------------------------------------------
(1) executeCommand() を呼び出し,
HotSpot に "properties" 処理を実行させる.
(なお, HotSpot との通信用 InputStream は呼び出し後に閉じる)
---------------------------------------- -}
try {
in = executeCommand("properties");
props.load(in);
} finally {
if (in != null) in.close();
}
{- -------------------------------------------
(1) 結果をリターン
---------------------------------------- -}
return props;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.