public class DefaultJsonReader extends Object implements JsonReader
JsonReader implementation.| Constructor and Description |
|---|
DefaultJsonReader(byte[] bytes)
Constructor using a byte array.
|
DefaultJsonReader(InputStream stream)
Constructor using an
InputStream and default UTF-8 encoding. |
DefaultJsonReader(InputStream stream,
Charset charset)
Constructor using an
InputStream. |
DefaultJsonReader(InputStream stream,
String charsetName)
Constructor using an
InputStream. |
DefaultJsonReader(Reader reader)
Constructor using a generic
Reader. |
DefaultJsonReader(String string)
Constructor using a String.
|
public DefaultJsonReader(InputStream stream)
InputStream and default UTF-8 encoding.stream - The JSON InputStreampublic DefaultJsonReader(InputStream stream, String charsetName)
InputStream.stream - The JSON InputStreamcharsetName - Encoding charset namepublic DefaultJsonReader(InputStream stream, Charset charset)
InputStream.stream - The JSON InputStreamcharset - Encoding charset (if null, default UTF-8 will be used)public DefaultJsonReader(byte[] bytes)
bytes - JSON bytespublic DefaultJsonReader(String string)
string - JSON stringpublic Reader getReader()
JsonReaderReader to read the JSON data.getReader in interface JsonReaderCopyright © 2019 The Holon Platform. All rights reserved.