|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.tum.cs.commons.io.ProcessUtils
public class ProcessUtils
Executes a system process. Takes care of reading stdout and stderr of the process in separate threads to avoid blocking.
| Nested Class Summary | |
|---|---|
static class |
ProcessUtils.ExecutionResult
Parameter object that encapsulates the result of a process execution. |
| Constructor Summary | |
|---|---|
ProcessUtils()
|
|
| Method Summary | |
|---|---|
static ProcessUtils.ExecutionResult |
execute(ProcessBuilder builder)
Executes a process in a thread-safe way. |
static ProcessUtils.ExecutionResult |
execute(ProcessBuilder builder,
String input)
Executes a process in a thread-safe way. |
static ProcessUtils.ExecutionResult |
execute(String[] completeArguments)
Executes a process in a thread-safe way. |
static ProcessUtils.ExecutionResult |
execute(String[] completeArguments,
String input)
Executes a process in a thread-safe way. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessUtils()
| Method Detail |
|---|
public static ProcessUtils.ExecutionResult execute(String[] completeArguments)
throws IOException
completeArguments - Array of command line arguments to start the process
IOException
public static ProcessUtils.ExecutionResult execute(String[] completeArguments,
String input)
throws IOException
completeArguments - Array of command line arguments to start the processinput - String that gets written to stdin
IOException
public static ProcessUtils.ExecutionResult execute(ProcessBuilder builder)
throws IOException
builder - builder that gets executed
IOException
public static ProcessUtils.ExecutionResult execute(ProcessBuilder builder,
String input)
throws IOException
builder - builder that gets executedinput - String that gets written to stdin
IOException
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||