public interface Input<T,SenderThrowableType extends Throwable>
Invoke transferTo to send data from this input to given output. transferTo can be invoked as many times as you want. The transferTo implementation must ensure that any exceptions thrown by the Input or the Output which transferred data is sent to is handled properly, i.e. that resources are closed. Any client code to transferTo calls should not have to bother with resource management, but may catch exceptions anyway for logging and similar purposes.
Modifier and Type | Method and Description |
---|---|
<ReceiverThrowableType extends Throwable> |
transferTo(Output<? super T,ReceiverThrowableType> output) |
<ReceiverThrowableType extends Throwable> void transferTo(Output<? super T,ReceiverThrowableType> output) throws SenderThrowableType extends Throwable, ReceiverThrowableType extends Throwable
SenderThrowableType extends Throwable