public interface JSONStreams
Modifier and Type | Method and Description |
---|---|
InputStream |
inputStream(Iterator<JSONToken> reader)
Produce an
InputStream on the fly from the specified JSONToken event stream |
JSONReader |
jsonReader(CharSequence text)
Wrap the specified character sequence in a
JSONReader instance |
JSONReader |
jsonReader(InputStream stream)
Wrap the specified byte stream in a
JSONReader instance |
JSONReader |
jsonReader(Readable stream)
Wrap the specified character stream in a
JSONReader instance |
JSONWriter |
jsonWriter(Appendable stream)
Wrap the specified character stream in a
JSONWriter instance. |
JSONWriter |
jsonWriter(OutputStream stream)
Wrap the specified byte stream in a
JSONWriter instance. |
InputStream inputStream(Iterator<JSONToken> reader)
InputStream
on the fly from the specified JSONToken
event streamreader
- The JSONToken
event stream to serializeInputStream
containing the serialized representation of the input JSONReader
streamJSONWriter jsonWriter(OutputStream stream)
JSONWriter
instance.stream
- The byte stream to write JSON toJSONWriter
instanceJSONWriter jsonWriter(Appendable stream)
JSONWriter
instance.stream
- The character stream to write JSON toJSONWriter
instanceJSONReader jsonReader(Readable stream)
JSONReader
instancestream
- The character stream to read the JSON content from.JSONReader
instanceJSONReader jsonReader(CharSequence text)
JSONReader
instancetext
- The CharSequence
to read the JSON content from.JSONReader
instanceJSONReader jsonReader(InputStream stream)
JSONReader
instancestream
- The byte stream to read the JSON content from.JSONReader
instance