Package adams.core.command.output
Interface OutputFormatter
-
- All Superinterfaces:
CleanUpHandler
- All Known Implementing Classes:
AbstractOutputFormatter
,LineSplit
,PassThrough
public interface OutputFormatter extends CleanUpHandler
Interface .- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
formatOutput(ExternalCommand command, boolean stdout, boolean blocking, String output)
Formats the output received from the command.Class
generates(boolean blocking)
Returns what output type the formatter generates.-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
-
-
-
Method Detail
-
generates
Class generates(boolean blocking)
Returns what output type the formatter generates.- Parameters:
blocking
- returns the type when used on blocking mode output- Returns:
- the type
-
formatOutput
void formatOutput(ExternalCommand command, boolean stdout, boolean blocking, String output)
Formats the output received from the command. Feeds the formatted data back into the ExternalCommand instance.- Parameters:
command
- the external command to feed the output back intostdout
- whether the output was from stdout or stderrblocking
- whether the output was received via blocking or async executionoutput
- the output to format
-
-