Interface JSONStreamAware

All Known Implementing Classes:
JSONArray, JSONObject

public interface JSONStreamAware
JSONStreamAware is an Adaptation of the JSONStreamAware class from the RFC4627 compliant JSON Simple (https://code.google.com/p/json-simple/). Beans that support customized output of JSON text to a writer shall implement this interface.

Author:
Fang Yidong, Lakshmi Krishnamurthy
  • Method Summary

    Modifier and Type Method Description
    void writeJSONString​(java.io.Writer out)
    write JSON string to out.
  • Method Details

    • writeJSONString

      void writeJSONString​(java.io.Writer out) throws java.io.IOException
      write JSON string to out.
      Parameters:
      out - Output Writer
      Throws:
      java.io.IOException - Thrown if the Inputs are invalid