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
-
Method Details
-
drain
Callback method to process a line outputted by the process. A trailing newline character is truncated.- Parameters:
line- the output line to process.
-