org.jfree.data.json.impl.JSONStreamAware Maven / Gradle / Ivy
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2020, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/index.html
*
* JSON.simple
* -----------
* The code in this file originates from the JSON.simple project by
* FangYidong:
*
* https://code.google.com/p/json-simple/
*
* which is licensed under the Apache Software License version 2.0.
*
* It has been modified locally and repackaged under
* org.jfree.data.json.impl.* to avoid conflicts with any other version that
* may be present on the classpath.
*
*/
package org.jfree.data.json.impl;
import java.io.IOException;
import java.io.Writer;
/**
* Beans that support customized output of JSON text to a writer shall
* implement this interface.
* @author FangYidong<[email protected]>
*
* This class is for internal use by JFreeChart, it is not
* part of the supported API and you should not call it directly. If you need
* JSON support in your project you should include JSON.simple
* (https://code.google.com/p/json-simple/) or some other JSON library directly
* in your project.
*/
public interface JSONStreamAware {
/**
* write JSON string to out.
*
* @param out the output writer.
*
* @throws IOException if there is an I/O problem.
*/
void writeJSONString(Writer out) throws IOException;
}