Class AbstractExecPty
java.lang.Object
org.aesh.terminal.tty.impl.AbstractExecPty
- All Implemented Interfaces:
Closeable, AutoCloseable, Pty
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Pty
getAttr, getSize, getSlaveInput, getSlaveOutput, peek, read, read, setAttr, supportsNonBlockingRead
-
Constructor Details
-
AbstractExecPty
-
-
Method Details
-
getName
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getMasterInput
Description copied from interface:PtyReturns the master side input stream.- Specified by:
getMasterInputin interfacePty- Returns:
- the master input stream
-
getMasterOutput
Description copied from interface:PtyReturns the master side output stream.- Specified by:
getMasterOutputin interfacePty- Returns:
- the master output stream
-
exec
Execute a command.- Parameters:
cmd- the command to execute- Returns:
- the command output
- Throws:
IOException- if execution fails
-