Package de.hsh.graja.util
Class ProcessBuilderWrapper
java.lang.Object
de.hsh.graja.util.ProcessBuilderWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionProcessBuilderWrapper
(File directory, List<String> command) ProcessBuilderWrapper
(String... command) ProcessBuilderWrapper
(List<String> command) -
Method Summary
Modifier and TypeMethodDescriptionint
redirectErrorStream
(boolean redirectErrorStream) int
startGrabOutputWaitForAndDestroy
(int timeoutSeconds)
-
Constructor Details
-
ProcessBuilderWrapper
-
ProcessBuilderWrapper
-
ProcessBuilderWrapper
-
-
Method Details
-
getErrorOutput
-
getOutput
-
getStatus
public int getStatus() -
directory
-
directory
-
environment
-
redirectErrorStream
-
startGrabOutputWaitForAndDestroy
public int startGrabOutputWaitForAndDestroy(int timeoutSeconds) throws IOException, InterruptedException - Parameters:
timeoutSeconds
- 0 means no timeout- Throws:
IOException
InterruptedException
-