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 PrintStreamGet this session's error output stream.default InputStreamGet this session's input stream.default PrintStreamGet 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
ExecSessionjust returnsthis.getRequest().getInputStream().- Specified by:
getInputStreamin interfaceConsoleSession<Exec,ExecRequest> - Returns:
- session input
-
getOutputStream
Get this session's output stream.The default implementation in
ExecSessionjust returnsthis.getRequest().getOutputStream().- Specified by:
getOutputStreamin interfaceConsoleSession<Exec,ExecRequest> - Returns:
- session output
-
getErrorStream
Get this session's error output stream.The default implementation in
ExecSessionjust returnsthis.getRequest().getErrorStream().- Specified by:
getErrorStreamin interfaceConsoleSession<Exec,ExecRequest> - Returns:
- session error output
-