- All Known Implementing Classes:
JsonStream
public interface JsonStreamAdapter
Provides the underlying JsonReader and JsonWriter to use.
-
Method Summary
Modifier and TypeMethodDescriptionReturn a JsonWriter for use for writing to json string.Return a JsonWriter to use for writing json to byte array.properties
(String... names) Return PropertyNames given the names of properties.reader
(byte[] json) Return the JsonReader given json content as bytes.reader
(InputStream inputStream) Return the JsonReader given json string content.Return the JsonReader given json string content.Return the JsonReader given json string content.writer
(JsonOutput output) Return the JsonWriter given the output.writer
(OutputStream outputStream) Return the JsonWriter given the outputStream.Return the JsonWriter given writer to use.
-
Method Details
-
reader
Return the JsonReader given json string content. -
reader
Return the JsonReader given json content as bytes. -
reader
Return the JsonReader given json string content. -
reader
Return the JsonReader given json string content. -
writer
Return the JsonWriter given writer to use. -
writer
Return the JsonWriter given the outputStream. -
writer
Return the JsonWriter given the output. -
bufferedWriter
BufferedJsonWriter bufferedWriter()Return a JsonWriter for use for writing to json string. -
bufferedWriterAsBytes
BytesJsonWriter bufferedWriterAsBytes()Return a JsonWriter to use for writing json to byte array. -
properties
Return PropertyNames given the names of properties.The PropertyNames can prepare the names for writing such as escaping quotes and encoding to bytes so that the names can be written more efficiently.
- See Also:
-