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 thereadLine(String)
method. This method should return:-
true
if next line should be read. For instance, if current line isnull
, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
readLine(String line)
Read a line from command output.
-
-
-
Method Detail
-
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 interfaceStreamVisitor
- Parameters:
line
- Line output.- Returns:
- Boolean indicating if next line should be read.
-
-