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<wbr>(Iterator<JSONToken> reader)Produce anInputStreamon the fly from the specifiedJSONTokenevent streamjsonReader<wbr>(InputStream stream)Wrap the specified byte stream in aJSONReaderinstancejsonReader<wbr>(CharSequence text)Wrap the specified character sequence in aJSONReaderinstancejsonReader<wbr>(Readable stream)Wrap the specified character stream in aJSONReaderinstancejsonWriter<wbr>(OutputStream stream)Wrap the specified byte stream in aJSONWriterinstance.jsonWriter<wbr>(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
-