Package oracle.dbtools.plugin.api.json
Interface JSONStreams
-
public interface JSONStreamsService 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.InputStreaminputStream(java.util.Iterator<JSONToken> reader)Produce anInputStreamon the fly from the specifiedJSONTokenevent streamJSONReaderjsonReader(java.io.InputStream stream)Wrap the specified byte stream in aJSONReaderinstanceJSONReaderjsonReader(java.lang.CharSequence text)Wrap the specified character sequence in aJSONReaderinstanceJSONReaderjsonReader(java.lang.Readable stream)Wrap the specified character stream in aJSONReaderinstanceJSONWriterjsonWriter(java.io.OutputStream stream)Wrap the specified byte stream in aJSONWriterinstance.JSONWriterjsonWriter(java.lang.Appendable stream)Wrap the specified character stream in aJSONWriterinstance.
-
-
-
Method Detail
-
inputStream
java.io.InputStream inputStream(java.util.Iterator<JSONToken> reader)
Produce anInputStreamon the fly from the specifiedJSONTokenevent stream- Parameters:
reader- TheJSONTokenevent stream to serialize- Returns:
InputStreamcontaining the serialized representation of the inputJSONReaderstream
-
jsonWriter
JSONWriter jsonWriter(java.io.OutputStream stream)
Wrap the specified byte stream in aJSONWriterinstance.- Parameters:
stream- The byte stream to write JSON to- Returns:
JSONWriterinstance
-
jsonWriter
JSONWriter jsonWriter(java.lang.Appendable stream)
Wrap the specified character stream in aJSONWriterinstance.- Parameters:
stream- The character stream to write JSON to- Returns:
JSONWriterinstance
-
jsonReader
JSONReader jsonReader(java.lang.Readable stream)
Wrap the specified character stream in aJSONReaderinstance- Parameters:
stream- The character stream to read the JSON content from.- Returns:
JSONReaderinstance
-
jsonReader
JSONReader jsonReader(java.lang.CharSequence text)
Wrap the specified character sequence in aJSONReaderinstance- Parameters:
text- TheCharSequenceto read the JSON content from.- Returns:
JSONReaderinstance
-
jsonReader
JSONReader jsonReader(java.io.InputStream stream)
Wrap the specified byte stream in aJSONReaderinstance- Parameters:
stream- The byte stream to read the JSON content from.- Returns:
JSONReaderinstance
-
-