public interface JsonReader
Json| Modifier and Type | Method and Description |
|---|---|
static JsonReader |
from(byte[] bytes)
Build a
JsonReader using given byte array as JSON data source. |
static JsonReader |
from(InputStream stream)
Build a
JsonReader using given InputStream as JSON data source and UTF-8 as charset. |
static JsonReader |
from(InputStream stream,
Charset charset)
Build a
JsonReader using given InputStream as JSON data source and given charset. |
static JsonReader |
from(InputStream stream,
String charsetName)
Build a
JsonReader using given InputStream as JSON data source and given charset name. |
static JsonReader |
from(Reader reader)
Build a
JsonReader using given Reader as JSON data source. |
static JsonReader |
from(String string)
Build a
JsonReader using given String as JSON data source. |
Reader |
getReader()
Get the
Reader to read the JSON data. |
static JsonReader from(Reader reader)
JsonReader using given Reader as JSON data source.reader - JSON data readerJsonReaderstatic JsonReader from(String string)
JsonReader using given String as JSON data source.string - JSON stringJsonReaderstatic JsonReader from(byte[] bytes)
JsonReader using given byte array as JSON data source.bytes - JSON data bytes (UTF-8 encoding is assumed by default)JsonReaderstatic JsonReader from(InputStream stream)
JsonReader using given InputStream as JSON data source and UTF-8 as charset.stream - JSON data input streamJsonReaderstatic JsonReader from(InputStream stream, String charsetName)
JsonReader using given InputStream as JSON data source and given charset name.stream - JSON data input streamcharsetName - name of the charset with which the stream is encodedJsonReaderstatic JsonReader from(InputStream stream, Charset charset)
JsonReader using given InputStream as JSON data source and given charset.stream - JSON data input streamcharset - charset with which the stream is encodedJsonReaderCopyright © 2019 The Holon Platform. All rights reserved.