    001package com.orsoncharts.util.json;
    002
    003import java.io.IOException;
    004import java.io.Writer;
    005
    006/**
    007 * Beans that support customized output of JSON text to a writer shall implement this interface.
    008 * @author FangYidong&lt;fangyidong@yahoo.com.cn&gt;
    009 */
    010public interface JSONStreamAware {
    011
    012    /**
    013     * write JSON string to out.
    014     *
    015     * @param out  the output writer.
    016     *
    017     * @throws IOException if there is an I/O problem.
    018     */
    019    void writeJSONString(Writer out) throws IOException;
    020
    021}