Package org.jline.utils
Class ExecHelper
- java.lang.Object
-
- org.jline.utils.ExecHelper
-
public final class ExecHelper extends java.lang.ObjectHelper methods for running unix commands.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExecHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidclose(java.io.Closeable... closeables)static java.lang.Stringexec(boolean redirectInput, java.lang.String... cmd)static java.lang.StringwaitAndCapture(java.lang.Process p)
-
-
-
Method Detail
-
exec
public static java.lang.String exec(boolean redirectInput, java.lang.String... cmd) throws java.io.IOException- Throws:
java.io.IOException
-
waitAndCapture
public static java.lang.String waitAndCapture(java.lang.Process p) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
close
private static void close(java.io.Closeable... closeables)
-
-