class JsonReaderImpl extends java.lang.Object implements JsonReader
| Modifier and Type | Field and Description |
|---|---|
private BufferPool |
bufferPool |
private JsonParserImpl |
parser |
private boolean |
readDone |
| Constructor and Description |
|---|
JsonReaderImpl(java.io.InputStream in,
BufferPool bufferPool) |
JsonReaderImpl(java.io.InputStream in,
java.nio.charset.Charset charset,
BufferPool bufferPool) |
JsonReaderImpl(java.io.Reader reader,
BufferPool bufferPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this reader and frees any resources associated with the
reader.
|
JsonStructure |
read()
Returns a JSON array or object that is represented in
the input source.
|
JsonArray |
readArray()
Returns a JSON array that is represented in
the input source.
|
private JsonArray |
readArray(JsonArrayBuilder builder) |
JsonObject |
readObject()
Returns a JSON object that is represented in
the input source.
|
private JsonObject |
readObject(JsonObjectBuilder builder) |
private final JsonParserImpl parser
private boolean readDone
private final BufferPool bufferPool
JsonReaderImpl(java.io.Reader reader,
BufferPool bufferPool)
JsonReaderImpl(java.io.InputStream in,
BufferPool bufferPool)
JsonReaderImpl(java.io.InputStream in,
java.nio.charset.Charset charset,
BufferPool bufferPool)
public JsonStructure read()
JsonReaderread in interface JsonReaderpublic JsonObject readObject()
JsonReaderreadObject in interface JsonReaderpublic JsonArray readArray()
JsonReaderreadArray in interface JsonReaderpublic void close()
JsonReaderclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface JsonReaderprivate JsonArray readArray(JsonArrayBuilder builder)
private JsonObject readObject(JsonObjectBuilder builder)