Package org.dellroad.jct.core
Interface ExecSession
- All Superinterfaces:
ConsoleSession<Exec,
ExecRequest>
- All Known Implementing Classes:
AbstractExecSession
,SimpleExec.Session
A
ConsoleSession
associated with the direct execution of a single command.-
Method Summary
Modifier and TypeMethodDescriptiondefault PrintStream
Get this session's error output stream.default InputStream
Get this session's input stream.default PrintStream
Get this session's output stream.Methods inherited from interface org.dellroad.jct.core.ConsoleSession
execute, getOwner, getRequest, interrupt
-
Method Details
-
getInputStream
Get this session's input stream.The default implementation in
ExecSession
just returnsthis.getRequest()
.
getInputStream()
.- Specified by:
getInputStream
in interfaceConsoleSession<Exec,
ExecRequest> - Returns:
- session input
-
getOutputStream
Get this session's output stream.The default implementation in
ExecSession
just returnsthis.getRequest()
.
getOutputStream()
.- Specified by:
getOutputStream
in interfaceConsoleSession<Exec,
ExecRequest> - Returns:
- session output
-
getErrorStream
Get this session's error output stream.The default implementation in
ExecSession
just returnsthis.getRequest()
.
getErrorStream()
.- Specified by:
getErrorStream
in interfaceConsoleSession<Exec,
ExecRequest> - Returns:
- session error output
-