aboutsummaryrefslogtreecommitdiff
path: root/src/org/json/simple/JSONStreamAware.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/json/simple/JSONStreamAware.java')
-rw-r--r--src/org/json/simple/JSONStreamAware.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/org/json/simple/JSONStreamAware.java b/src/org/json/simple/JSONStreamAware.java
new file mode 100644
index 0000000..c0420fb
--- /dev/null
+++ b/src/org/json/simple/JSONStreamAware.java
@@ -0,0 +1,18 @@
1package org.json.simple;
2
3import java.io.IOException;
4
5import rejava.io.Writer;
6
7/**
8 * Beans that support customized output of JSON text to a writer shall implement
9 * this interface.
10 *
11 * @author FangYidong<fangyidong@yahoo.com.cn>
12 */
13public interface JSONStreamAware {
14 /**
15 * write JSON string to out.
16 */
17 void writeJSONString(final Writer out) throws IOException;
18}