public class StringCoAcceptor
extends AbstractIntCoAcceptor
An interface IntCoAcceptor that accumulates the received data as a stream of characters and makes the result available as a
String. This is particularly useful for testing functions that output character data.
interface IntCoAcceptor,
Stringpublic StringCoAcceptor(int initialSize)
An interface IntCoAcceptor that accumulates the received data as a stream of characters and makes the result available as a
String. This is particularly useful for testing functions that output character data.
interface IntCoAcceptor,
Stringpublic StringCoAcceptor()
An interface IntCoAcceptor that accumulates the received data as a stream of characters and makes the result available as a
String. This is particularly useful for testing functions that output character data.
interface IntCoAcceptor,
Stringpublic int getSize()
@Nullable
public java.lang.Object acceptInt(int value,
@NotNull
kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Accept an int, after closed check and test for end of data. Implementing classes must supply an
implementation of this method.
value - the input value@NotNull public java.lang.String getResult()
public void reset()