Interface Command

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setErrorStream​(java.io.OutputStream err)
      Set the error stream that can be used by the shell to write its errors.
      void setExitCallback​(ExitCallback callback)
      Set the callback that the shell has to call when it is closed.
      void setInputStream​(java.io.InputStream in)
      Set the input stream that can be used by the shell to read input.
      void setOutputStream​(java.io.OutputStream out)
      Set the output stream that can be used by the shell to write its output.
    • Method Detail

      • setInputStream

        void setInputStream​(java.io.InputStream in)
        Set the input stream that can be used by the shell to read input.
        Parameters:
        in - The InputStream used by the shell to read input.
      • setOutputStream

        void setOutputStream​(java.io.OutputStream out)
        Set the output stream that can be used by the shell to write its output.
        Parameters:
        out - The OutputStream used by the shell to write its output
      • setErrorStream

        void setErrorStream​(java.io.OutputStream err)
        Set the error stream that can be used by the shell to write its errors.
        Parameters:
        err - The OutputStream used by the shell to write its errors
      • setExitCallback

        void setExitCallback​(ExitCallback callback)
        Set the callback that the shell has to call when it is closed.
        Parameters:
        callback - The ExitCallback to call when shell is closed