|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.wrapper.common.process.ProcessFacade
public class ProcessFacade
ProcessBuilderのファサード。
| コンストラクタの概要 | |
|---|---|
ProcessFacade()
コンストラクタ。 |
|
ProcessFacade(File directory,
String... args)
コンストラクタ。 |
|
ProcessFacade(String... args)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
ProcessBuilder |
builder()
プロセスビルダを返す。 |
void |
close()
リソースを解放しプロセスを終了させる(終了を待機する)。 |
void |
close(int timeoutMillis)
リソースを解放しプロセスを終了させる(終了を待機する)。 |
void |
closeStreams()
出力ストリーム、入力ストリームの順でcloseメソッドを呼び出す。 |
int |
exitValue()
|
InputStream |
getErrorStream()
入力ストリームを取得する。 |
InputStream |
getInputStream()
入力ストリームを取得する。 |
OutputStream |
getOutputStream()
出力ストリームを取得する。 |
void |
start()
プロセスを開始する。 |
void |
waitFor()
起動したプロセスの終了を待機する。 |
void |
waitFor(int timeoutMillis)
起動したプロセスの終了を待機する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ProcessFacade(File directory,
String... args)
args - 実行するコマンド文字列public ProcessFacade(String... args)
args - 実行するコマンド文字列public ProcessFacade()
| メソッドの詳細 |
|---|
public ProcessBuilder builder()
public void start()
throws IOException
IOException - プロセスの開始に失敗した
public InputStream getInputStream()
throws IllegalStateException
IllegalStateException - プロセスが開始されていない
public InputStream getErrorStream()
throws IllegalStateException
IllegalStateException - プロセスが開始されていないpublic OutputStream getOutputStream()
IllegalStateException - プロセスが開始されていない
public void closeStreams()
throws IOException
IOException - ストリームのclose呼び出しに失敗した
public void waitFor()
throws InterruptedException
InterruptedException - 待機操作が中断されたpublic int exitValue()
public void waitFor(int timeoutMillis)
throws InterruptedException,
TimeoutException
timeoutMillis - 待機するミリ秒数
InterruptedException - 待機操作が中断された
TimeoutException - 待機時間を経過してもプロセスが終了しなかった
public void close()
throws InterruptedException,
IOException
InterruptedException - 待機操作が中断された
IOException - ストリームのクローズに失敗した
public void close(int timeoutMillis)
throws InterruptedException,
IOException,
TimeoutException
timeoutMillis - 待機するミリ秒数
InterruptedException - 待機操作が中断された
IOException - ストリームのクローズに失敗した
TimeoutException - 待機時間を経過してもプロセスが終了しなかった
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||