Modifier and Type | Class and Description |
---|---|
static interface |
InputStreamConsumer.Handler
Interface to handle a line of input from the stream.
|
Constructor and Description |
---|
InputStreamConsumer(InputStream inputStream,
InputStreamConsumer.Handler... handlers) |
InputStreamConsumer(Reader reader,
InputStreamConsumer.Handler... handlers) |
Modifier and Type | Method and Description |
---|---|
Unit |
call() |
static InputStreamConsumer.Handler |
createAnsiHighlightingHandler(boolean flagOutputWrittenToStream,
PrintStream printStream,
Ansi ansi) |
public InputStreamConsumer(InputStream inputStream, InputStreamConsumer.Handler... handlers)
public InputStreamConsumer(Reader reader, InputStreamConsumer.Handler... handlers)
public Unit call() throws IOException
call
in interface Callable<Unit>
IOException
public static InputStreamConsumer.Handler createAnsiHighlightingHandler(boolean flagOutputWrittenToStream, PrintStream printStream, Ansi ansi)