Package 

Class StringCoAcceptor

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getSize()
      String getResult()
      Unit acceptInt(Integer value) Accept an int, after closed check and test for end of data.
      final Unit reset()
      • 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
    • Constructor Detail

      • StringCoAcceptor

        StringCoAcceptor(Integer initialSize)