Package com.jcabi.ssh

Class Shell.Verbose

  • All Implemented Interfaces:
    Shell
    Enclosing interface:
    Shell

    @Immutable
    public static final class Shell.Verbose
    extends Object
    implements Shell
    Verbose run.
    Since:
    0.1
    • Constructor Detail

      • Verbose

        public Verbose​(Shell shell)
        Ctor.
        Parameters:
        shell - Original shell
    • Method Detail

      • exec

        public int exec​(String command,
                        InputStream stdin,
                        OutputStream stdout,
                        OutputStream stderr)
                 throws IOException
        Description copied from interface: Shell
        Execute and return exit code.
        Specified by:
        exec in interface Shell
        Parameters:
        command - Command
        stdin - Stdin (will be closed)
        stdout - Stdout (will be closed)
        stderr - Stderr (will be closed)
        Returns:
        Exit code
        Throws:
        IOException - If fails