egeyama.commons.util
クラス ProcessHelper

java.lang.Object
  上位を拡張 egeyama.commons.util.ProcessHelper

public final class ProcessHelper
extends Object

java.lang.Processを簡易的に操作するためのヘルパークラス。

導入されたバージョン:
0.3.0
作成者:
okamo

コンストラクタの概要
ProcessHelper(Process proc)
          procを処理対象プロセスとして保持する。
 
メソッドの概要
 List<String> getError()
          プロセスの標準エラーを取得。
 List<String> getOut()
          プロセスの標準出力を取得。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ProcessHelper

public ProcessHelper(Process proc)
procを処理対象プロセスとして保持する。

パラメータ:
proc - java.lang.Process
メソッドの詳細

getOut

public List<String> getOut()
                    throws IOException
プロセスの標準出力を取得。すでに標準出力を取得済みの場合は既存のリストを返す。

戻り値:
プロセスの標準出力をjava.util.Listで返す
例外:
IOException - ストリームの読み込み失敗

getError

public List<String> getError()
                      throws IOException
プロセスの標準エラーを取得。すでに標準エラーを取得済みの場合は既存のリストを返す。

戻り値:
プロセスの標準エラーをjava.util.Listで返す
例外:
IOException - ストリームの読み込み失敗


Copyright © 2006 - Egeyama Project