001/* ===========================================================
002 * JFreeChart : a free chart library for the Java(tm) platform
003 * ===========================================================
004 *
005 * (C) Copyright 2000-present, by David Gilbert and Contributors.
006 *
007 * Project Info:  http://www.jfree.org/jfreechart/index.html
008 *
009 * JSON.simple
010 * -----------
011 * The code in this file originates from the JSON.simple project by 
012 * FangYidong<fangyidong@yahoo.com.cn>:
013 * 
014 *     https://code.google.com/p/json-simple/
015 *  
016 * which is licensed under the Apache Software License version 2.0.  
017 * 
018 * It has been modified locally and repackaged under 
019 * org.jfree.data.json.impl.* to avoid conflicts with any other version that
020 * may be present on the classpath.
021 * 
022 */
023
024package org.jfree.data.json.impl;
025
026
027import java.io.IOException;
028import java.io.Writer;
029
030/**
031 * Beans that support customized output of JSON text to a writer shall 
032 * implement this interface.  
033 * @author FangYidong&lt;fangyidong@yahoo.com.cn&gt;
034 * <br><br>
035 * This class is for internal use by JFreeChart, it is not 
036 * part of the supported API and you should not call it directly.  If you need
037 * JSON support in your project you should include JSON.simple 
038 * (https://code.google.com/p/json-simple/) or some other JSON library directly
039 * in your project.
040 */
041public interface JSONStreamAware {
042    
043    /**
044     * write JSON string to out.
045     * 
046     * @param out  the output writer.
047     * 
048     * @throws IOException if there is an I/O problem.  
049     */
050    void writeJSONString(Writer out) throws IOException;
051
052}
053