diff options
author | Pacien TRAN-GIRARD | 2014-05-04 17:37:41 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-04 17:37:41 +0200 |
commit | 688634ae5a5aaf663159032e67d2132ea61c5d5f (patch) | |
tree | e0642498c904e8a9373df479239fbfc603a957d3 /src/org/json/simple/JSONStreamAware.java | |
parent | 780bae6cd1a4d2a81b8c3ed72ee5d73cee9b5ccb (diff) | |
download | esieequest-688634ae5a5aaf663159032e67d2132ea61c5d5f.tar.gz |
Implement "save" and "load"
Diffstat (limited to 'src/org/json/simple/JSONStreamAware.java')
-rw-r--r-- | src/org/json/simple/JSONStreamAware.java | 18 |
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 @@ | |||
1 | package org.json.simple; | ||
2 | |||
3 | import java.io.IOException; | ||
4 | |||
5 | import 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 | */ | ||
13 | public interface JSONStreamAware { | ||
14 | /** | ||
15 | * write JSON string to out. | ||
16 | */ | ||
17 | void writeJSONString(Writer out) throws IOException; | ||
18 | } | ||