-
public interface Shell.TaskA task that can be executed by a shell with the method execTask.
-
-
Method Summary
Modifier and Type Method Description abstract voidrun(@NonNull() OutputStream stdin, @NonNull() InputStream stdout, @NonNull() InputStream stderr)This method will be called when a task is executed by a shell. voidshellDied()This method will be called when a shell is unable to execute this task. -
-
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.
-
-
-
-