-
- All Implemented Interfaces:
-
net.pwall.pipeline.BaseCoAcceptor,net.pwall.pipeline.IntCoAcceptor
public final class ByteChannelCoAcceptor extends AbstractIntCoAcceptor<Unit>
An implementation of IntCoAcceptor that sends the value to a ByteWriteChannel.
The Int values are expected to be in the range 0..255, i.e. byte values. That makes this class suitable as the downstream acceptor for an encoder pipeline.
-
-
Constructor Summary
Constructors Constructor Description ByteChannelCoAcceptor(ByteWriteChannel channel)
-
Method Summary
Modifier and Type Method Description UnitgetResult()UnitacceptInt(Integer value)Accept a value, after closedcheck and test for end of data.Unitclose()Close the acceptor. Unitflush()Flush the output to the channel. -
Methods inherited from class net.pwall.pipeline.BaseAbstractCoAcceptor
getClosed -
Methods inherited from class net.pwall.pipeline.BaseCoAcceptor
getComplete -
Methods inherited from class net.pwall.pipeline.AbstractIntCoAcceptor
accept -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-