Package 

Interface Shell.Task


  • 
    public interface Shell.Task
    
                        

    A task that can be executed by a shell with the method execTask.

    • Method Summary

      Modifier and Type Method Description
      abstract void run(@NonNull() OutputStream stdin, @NonNull() InputStream stdout, @NonNull() InputStream stderr) This method will be called when a task is executed by a shell.
      void shellDied() This method will be called when a shell is unable to execute this task.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

         abstract void run(@NonNull() OutputStream stdin, @NonNull() InputStream stdout, @NonNull() InputStream stderr)

        This method will be called when a task is executed by a shell.Calling close on any stream is NOP (does nothing).

        Parameters:
        stdin - the STDIN of the shell.
        stdout - the STDOUT of the shell.
        stderr - the STDERR of the shell.
      • shellDied

         void shellDied()

        This method will be called when a shell is unable to execute this task.