diff options
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..c0420fb --- /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(final Writer out) throws IOException; | ||
18 | } | ||