-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,net.pwall.util.pipeline.BaseCoAcceptor,net.pwall.util.pipeline.IntCoAcceptor,net.pwall.util.pipeline.IntObjectCoPipeline
public final class JSONArrayCoPipeline<R extends Object> extends AbstractIntObjectCoPipeline<JSONValue, R>
A (coroutine) pipeline that accepts a JSON array as a stream of Unicode code points and emits a
JSONValuefor each item in the array.
-
-
Constructor Summary
Constructors Constructor Description JSONArrayCoPipeline(CoAcceptor<JSONValue, R> valueConsumer)
-
Method Summary
Modifier and Type Method Description UnitacceptInt(Integer value)Unitclose()BooleangetComplete()final Booleanget_closed()BooleangetClosed()final CoAcceptor<JSONValue, R>getDownstream()RgetResult()final Unitset_closed(Boolean _closed)-
Methods inherited from class net.pwall.util.pipeline.AbstractIntObjectCoPipeline
accept -
Methods inherited from class net.pwall.util.pipeline.AbstractIntCoAcceptor
accept, accept -
Methods inherited from class net.pwall.json.stream.JSONArrayCoPipeline
emit, flush -
Methods inherited from class java.lang.AutoCloseable
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
JSONArrayCoPipeline
JSONArrayCoPipeline(CoAcceptor<JSONValue, R> valueConsumer)
- Parameters:
valueConsumer- theJSONValueconsumer
-
-
Method Detail
-
getComplete
Boolean getComplete()
-
get_closed
final Boolean get_closed()
-
getDownstream
final CoAcceptor<JSONValue, R> getDownstream()
-
set_closed
final Unit set_closed(Boolean _closed)
-
-
-
-