Package dev.enola.common.exec.pty
Class PtyRunner
java.lang.Object
dev.enola.common.exec.pty.PtyRunner
- All Implemented Interfaces:
AutoCloseable
PtyRunner executes a command in a PTY, connecting its I/O to an IS & OS.
-
Constructor Summary
ConstructorsConstructorDescriptionPtyRunner(boolean console, Path directory, String[] cmd, Map<String, String> env, InputStream in, OutputStream out, OutputStream err, boolean redirectErrorStream) -
Method Summary
-
Constructor Details
-
PtyRunner
public PtyRunner(boolean console, Path directory, String[] cmd, Map<String, String> env, InputStream in, OutputStream out, OutputStream err, boolean redirectErrorStream) throws IOException- Throws:
IOException
-
-
Method Details
-
size
-
close
- Specified by:
closein interfaceAutoCloseable
-
waitForExit
-
waitFor
-