Interface ProcessStreamConsumer
-
- All Known Implementing Classes:
DelegatingStreamConsumer,LoggingStreamConsumer
public interface ProcessStreamConsumerCallback interface used byAsyncStreamReader.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(String line)Called when a new line was read from the input stream.voidreadFailed(IOException exception)Called when reading the input stream failed.voidreadFinished()Called when reading the input stream finished.
-
-
-
Method Detail
-
accept
void accept(String line)
Called when a new line was read from the input stream.- Parameters:
line- the read line
-
readFinished
void readFinished()
Called when reading the input stream finished.
-
readFailed
void readFailed(IOException exception)
Called when reading the input stream failed.- Parameters:
exception- the exception.
-
-