Interface JsonStreamAdapter

All Known Implementing Classes:
JsonStream

public interface JsonStreamAdapter
Provides the underlying JsonReader and JsonWriter to use.
  • Method Details

    • reader

      JsonReader reader(String json)
      Return the JsonReader given json string content.
    • reader

      JsonReader reader(byte[] json)
      Return the JsonReader given json content as bytes.
    • reader

      JsonReader reader(Reader reader)
      Return the JsonReader given json string content.
    • reader

      JsonReader reader(InputStream inputStream)
      Return the JsonReader given json string content.
    • writer

      JsonWriter writer(Writer writer)
      Return the JsonWriter given writer to use.
    • writer

      JsonWriter writer(OutputStream outputStream)
      Return the JsonWriter given the outputStream.
    • writer

      JsonWriter writer(JsonOutput output)
      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

      PropertyNames properties(String... names)
      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: