org.jfree.data.json.impl.JSONStreamAware Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfreechart Show documentation
Show all versions of jfreechart Show documentation
JFreeChart is a class library, written in Java, for generating charts.
Utilising the Java2D API, it supports a wide range of chart types including
bar charts, pie charts, line charts, XY-plots, time series plots, Sankey charts
and more.
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-present, by David Gilbert 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;
}