-
- All Implemented Interfaces:
-
net.pwall.pipeline.BaseCoAcceptor,net.pwall.pipeline.IntCoAcceptor
public final class StringCoAcceptor extends AbstractIntCoAcceptor<String>
An 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.
-
-
Constructor Summary
Constructors Constructor Description StringCoAcceptor(Integer initialSize)
-
Method Summary
Modifier and Type Method Description final IntegergetSize()StringgetResult()UnitacceptInt(Integer value)Accept an int, afterclosedcheck and test for end of data.final Unitreset()-
Methods inherited from class net.pwall.pipeline.BaseAbstractCoAcceptor
close, getClosed -
Methods inherited from class net.pwall.pipeline.BaseCoAcceptor
flush, 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
-
-