public class ByteChannelCoAcceptor
extends AbstractIntCoAcceptor
An implementation of interface 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.
interface IntCoAcceptor,
Intpublic ByteChannelCoAcceptor(@NotNull
kotlinx.coroutines.io.ByteWriteChannel channel)
An implementation of interface 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.
interface IntCoAcceptor,
Int@Nullable
public java.lang.Object acceptInt(int value,
@NotNull
kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Accept a value, after closed check and test for end of data. Send the value to the ByteWriteChannel.
value - the input valuepublic void close()
Close the acceptor.