public class ProcRunner extends Object
| Constructor and Description |
|---|
ProcRunner(boolean includeErrorStream,
List<String> command) |
ProcRunner(boolean includeErrorStream,
String... command) |
ProcRunner(List<String> command) |
ProcRunner(String... command) |
| Modifier and Type | Method and Description |
|---|---|
String |
getOutputBlob() |
List<String> |
getOutputLines() |
int |
run()
No timeout.
|
int |
run(long timeout) |
void |
setWorkDir(File directory) |
public ProcRunner(boolean includeErrorStream,
String... command)
public ProcRunner(String... command)
public void setWorkDir(File directory)
public int run()
throws IOException
IOExceptionpublic int run(long timeout)
throws IOException
timeout - in millisIOExceptionpublic String getOutputBlob()
Copyright © 2016 Github jjYBdx4IL Projects. All rights reserved.