public interface StreamConsumer
Works in concert with the StreamPumper class to allow implementations to gain access to the lines being "Pumped".
Please note that implementations of this interface can be expected to be called from arbitrary threads and must therefore be threadsafe.
Modifier and Type | Method and Description |
---|---|
void |
consumeLine(String line)
Called when the StreamPumper pumps a line from the Stream.
|
void consumeLine(String line) throws IOException
line
- The line to be consumed.IOException
- if consuming line
fails.Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.