Interface Node.OutputCallback

Enclosing class:
Node

public static interface Node.OutputCallback
Callback interface for real-time output streaming during command execution.

Implementations receive stdout and stderr lines as they are produced, enabling real-time display or logging of command output.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a line is read from standard error.
    void
    Called when a line is read from standard output.
  • Method Details

    • onStdout

      void onStdout(String line)
      Called when a line is read from standard output.
      Parameters:
      line - the stdout line (without trailing newline)
    • onStderr

      void onStderr(String line)
      Called when a line is read from standard error.
      Parameters:
      line - the stderr line (without trailing newline)