Top


定義場所(file name)

jdk/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java

説明(description)

    /*
     * Send "properties" command to target VM
     */

名前(function name)

    public Properties getSystemProperties() throws IOException {

本体部(body)

  {- -------------------------------------------
  (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.