|
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(java.lang.ProcessBuilder builder)
Executes a process in a thread-safe way. |
static ProcessUtils.ExecutionResult |
execute(java.lang.ProcessBuilder builder,
java.lang.String input)
Executes a process in a thread-safe way. |
static ProcessUtils.ExecutionResult |
execute(java.lang.String[] completeArguments)
Executes a process in a thread-safe way. |
static ProcessUtils.ExecutionResult |
execute(java.lang.String[] completeArguments,
java.lang.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(java.lang.String[] completeArguments) throws java.io.IOException
completeArguments
- Array of command line arguments to start the process
java.io.IOException
public static ProcessUtils.ExecutionResult execute(java.lang.String[] completeArguments, java.lang.String input) throws java.io.IOException
completeArguments
- Array of command line arguments to start the processinput
- String that gets written to stdin
java.io.IOException
public static ProcessUtils.ExecutionResult execute(java.lang.ProcessBuilder builder) throws java.io.IOException
builder
- builder that gets executed
java.io.IOException
public static ProcessUtils.ExecutionResult execute(java.lang.ProcessBuilder builder, java.lang.String input) throws java.io.IOException
builder
- builder that gets executedinput
- String that gets written to stdin
java.io.IOException
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |