Package oracle.dbtools.plugin.api.json
Interface JSONStreams
-
public interface JSONStreams
Service for generating readable and writable JSON streams from character streams.- Author:
- cdivilly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
inputStream(java.util.Iterator<JSONToken> reader)
Produce anInputStream
on the fly from the specifiedJSONToken
event streamJSONReader
jsonReader(java.io.InputStream stream)
Wrap the specified byte stream in aJSONReader
instanceJSONReader
jsonReader(java.lang.CharSequence text)
Wrap the specified character sequence in aJSONReader
instanceJSONReader
jsonReader(java.lang.Readable stream)
Wrap the specified character stream in aJSONReader
instanceJSONWriter
jsonWriter(java.io.OutputStream stream)
Wrap the specified byte stream in aJSONWriter
instance.JSONWriter
jsonWriter(java.lang.Appendable stream)
Wrap the specified character stream in aJSONWriter
instance.
-
-
-
Method Detail
-
inputStream
java.io.InputStream inputStream(java.util.Iterator<JSONToken> reader)
Produce anInputStream
on the fly from the specifiedJSONToken
event stream- Parameters:
reader
- TheJSONToken
event stream to serialize- Returns:
InputStream
containing the serialized representation of the inputJSONReader
stream
-
jsonWriter
JSONWriter jsonWriter(java.io.OutputStream stream)
Wrap the specified byte stream in aJSONWriter
instance.- Parameters:
stream
- The byte stream to write JSON to- Returns:
JSONWriter
instance
-
jsonWriter
JSONWriter jsonWriter(java.lang.Appendable stream)
Wrap the specified character stream in aJSONWriter
instance.- Parameters:
stream
- The character stream to write JSON to- Returns:
JSONWriter
instance
-
jsonReader
JSONReader jsonReader(java.lang.Readable stream)
Wrap the specified character stream in aJSONReader
instance- Parameters:
stream
- The character stream to read the JSON content from.- Returns:
JSONReader
instance
-
jsonReader
JSONReader jsonReader(java.lang.CharSequence text)
Wrap the specified character sequence in aJSONReader
instance- Parameters:
text
- TheCharSequence
to read the JSON content from.- Returns:
JSONReader
instance
-
jsonReader
JSONReader jsonReader(java.io.InputStream stream)
Wrap the specified byte stream in aJSONReader
instance- Parameters:
stream
- The byte stream to read the JSON content from.- Returns:
JSONReader
instance
-
-