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
Modifier and TypeMethodDescriptioninputStream(Iterator<JSONToken> reader) Produce anInputStreamon the fly from the specifiedJSONTokenevent streamjsonReader(InputStream stream) Wrap the specified byte stream in aJSONReaderinstancejsonReader(CharSequence text) Wrap the specified character sequence in aJSONReaderinstancejsonReader(Readable stream) Wrap the specified character stream in aJSONReaderinstancejsonWriter(OutputStream stream) Wrap the specified byte stream in aJSONWriterinstance.jsonWriter(Appendable stream) Wrap the specified character stream in aJSONWriterinstance.
-
Method Details
-
inputStream
Produce anInputStreamon the fly from the specifiedJSONTokenevent stream- Parameters:
reader- TheJSONTokenevent stream to serialize- Returns:
InputStreamcontaining the serialized representation of the inputJSONReaderstream
-
jsonWriter
Wrap the specified byte stream in aJSONWriterinstance.- Parameters:
stream- The byte stream to write JSON to- Returns:
JSONWriterinstance
-
jsonWriter
Wrap the specified character stream in aJSONWriterinstance.- Parameters:
stream- The character stream to write JSON to- Returns:
JSONWriterinstance
-
jsonReader
Wrap the specified character stream in aJSONReaderinstance- Parameters:
stream- The character stream to read the JSON content from.- Returns:
JSONReaderinstance
-
jsonReader
Wrap the specified character sequence in aJSONReaderinstance- Parameters:
text- TheCharSequenceto read the JSON content from.- Returns:
JSONReaderinstance
-
jsonReader
Wrap the specified byte stream in aJSONReaderinstance- Parameters:
stream- The byte stream to read the JSON content from.- Returns:
JSONReaderinstance
-