Class DelegatingStreamConsumer
- java.lang.Object
-
- com.exasol.extensionmanager.itest.process.DelegatingStreamConsumer
-
- All Implemented Interfaces:
ProcessStreamConsumer
public class DelegatingStreamConsumer extends Object implements ProcessStreamConsumer
ThisProcessStreamConsumerforwards all events to the given delegates.
-
-
Constructor Summary
Constructors Constructor Description DelegatingStreamConsumer(ProcessStreamConsumer... delegates)Create a newDelegatingStreamConsumer.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
DelegatingStreamConsumer
public DelegatingStreamConsumer(ProcessStreamConsumer... delegates)
Create a newDelegatingStreamConsumer.- Parameters:
delegates- delegates to which events should be forwarded
-
-
Method Detail
-
accept
public void accept(String line)
Description copied from interface:ProcessStreamConsumerCalled when a new line was read from the input stream.- Specified by:
acceptin interfaceProcessStreamConsumer- Parameters:
line- the read line
-
readFinished
public void readFinished()
Description copied from interface:ProcessStreamConsumerCalled when reading the input stream finished.- Specified by:
readFinishedin interfaceProcessStreamConsumer
-
readFailed
public void readFailed(IOException exception)
Description copied from interface:ProcessStreamConsumerCalled when reading the input stream failed.- Specified by:
readFailedin interfaceProcessStreamConsumer- Parameters:
exception- the exception.
-
-