public class RunProcess extends ObjectSE
コンストラクターと説明 |
---|
RunProcess(FileSE workingDirectory, StringSE... command) 指定された作業ディレクトリとコマンドの新しい RunProcess インスタンスを作成します。 |
RunProcess(StringSE... command) 指定されたコマンドの新しい RunProcess インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ProcessSE | getRunningProcess() 実行中のプロセスを返します。 |
boolean | handleSigInt() プロセスが停止した場合に戻ります。 |
boolean | hasJustEnded() |
void | kill() このプロセスを終了します。 |
int | run(boolean waitForProcess, CollectionSE<StringSE> args, MapSE<StringSE, StringSE> environmentVariables) |
int | run(boolean waitForProcess, StringSE... args) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public RunProcess(StringSE... command)
RunProcess
インスタンスを作成します。command
- 実行するプログラムとその引数 public RunProcess(FileSE workingDirectory, StringSE... command)
RunProcess
インスタンスを作成します。workingDirectory
- 現在の Java プロセスの作業ディレクトリで実行する子プロセスまたは null
の作業ディレクトリ command
- 実行するプログラムとその引数 public int run(boolean waitForProcess, StringSE... args) throws IOExceptionSE
public int run(boolean waitForProcess, CollectionSE<StringSE> args, MapSE<StringSE,StringSE> environmentVariables) throws IOExceptionSE
public ProcessSE getRunningProcess()
null
public boolean handleSigInt()
true
public void kill()
public boolean hasJustEnded()