aboutsummaryrefslogtreecommitdiff
path: root/src/org/json/simple/JSONStreamAware.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-04 17:37:41 +0200
committerPacien TRAN-GIRARD2014-05-04 17:37:41 +0200
commit688634ae5a5aaf663159032e67d2132ea61c5d5f (patch)
treee0642498c904e8a9373df479239fbfc603a957d3 /src/org/json/simple/JSONStreamAware.java
parent780bae6cd1a4d2a81b8c3ed72ee5d73cee9b5ccb (diff)
downloadesieequest-688634ae5a5aaf663159032e67d2132ea61c5d5f.tar.gz
Implement "save" and "load"
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..561634d
--- /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(Writer out) throws IOException;
18}