Interface Drain

  • All Known Implementing Classes:
    LoggingDrain, StringDrain

    public interface Drain
    Callback interface to process a processes standard output or error output.

    Note: This interface can only process character data. Binary output is currently not supported.

    Method drain(String) is called for each line emitted by the process. So please be aware, that a newline character is truncated at the end of the line.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void drain​(java.lang.String line)
      Callback method to process a line outputted by the process.
    • Method Detail

      • drain

        void drain​(java.lang.String line)
        Callback method to process a line outputted by the process. A trailing newline character is truncated.
        Parameters:
        line - the output line to process.