public class JSONStream
extends net.pwall.util.pipeline.AbstractIntAcceptor<net.pwall.json.JSONValue>
JSONValue result. This class may be
used to parse JSON on the fly, avoiding the need to allocate memory for the largest possible JSON input.
This class conforms to the conventions of the pipelines library, allowing it to be used as the consuming class at the end of a pipeline.
| Constructor and Description |
|---|
JSONStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptInt(int value) |
void |
close() |
net.pwall.json.JSONValue |
getResult() |
public void acceptInt(int value)
acceptInt in class net.pwall.util.pipeline.AbstractIntAcceptor<net.pwall.json.JSONValue>public net.pwall.json.JSONValue getResult()
getResult in interface net.pwall.util.pipeline.BaseAcceptor<net.pwall.json.JSONValue>getResult in class net.pwall.util.pipeline.BaseAbstractAcceptor<net.pwall.json.JSONValue>public void close()
close in interface AutoCloseableclose in class net.pwall.util.pipeline.BaseAbstractAcceptor<net.pwall.json.JSONValue>Copyright © 2020. All rights reserved.