Package com.lingocoder.process
Class ProcessHelper
- java.lang.Object
-
- com.lingocoder.process.ProcessHelper
-
public class ProcessHelper extends java.lang.Object
A convenience class that creates and executes operating systemProcess
es.
-
-
Constructor Summary
Constructors Constructor Description ProcessHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessIO
runProcess(java.lang.String[] cmdArray)
-
-
-
Method Detail
-
runProcess
public ProcessIO runProcess(java.lang.String[] cmdArray)
- Parameters:
cmdArray
- AString
array containing a program to run and its arguments.- Returns:
- A composite result containing whatever the requested process may have written to
stdout
and/orstderr
. The result will also hold an exit code of either0
to indicate a successful exit, or1
to indicate the process produced and error.
-
-