Interface OutputHandler

All Superinterfaces:
StreamVisitor
All Known Subinterfaces:
TagHandler
All Known Implementing Classes:
AllTagHandler, BaseTagHandler, StandardTagHandler, StopHandler

public interface OutputHandler extends StreamVisitor
Handler that should be used to handle command line output.
Each line is give to the readLine(String) method. This method should return:
  • true if next line should be read. For instance, if current line is null, it probably means that no more output is available. This may let handlers to implement a custom logic.
  • false if next line should not be read (end of output).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Read a line from command output.
  • Method Details

    • readLine

      boolean readLine(String line)
      Read a line from command output. Returned value is a boolean: it should indicate if next line should be read or if output is finished.
      Specified by:
      readLine in interface StreamVisitor
      Parameters:
      line - Line output.
      Returns:
      Boolean indicating if next line should be read.