50 |
26 Feb 19 |
nicklas |
1 |
package org.json.simple.parser; |
50 |
26 Feb 19 |
nicklas |
2 |
|
50 |
26 Feb 19 |
nicklas |
3 |
import java.util.List; |
50 |
26 Feb 19 |
nicklas |
4 |
import java.util.Map; |
50 |
26 Feb 19 |
nicklas |
5 |
|
50 |
26 Feb 19 |
nicklas |
6 |
/** |
50 |
26 Feb 19 |
nicklas |
* Container factory for creating containers for JSON object and JSON array. |
50 |
26 Feb 19 |
nicklas |
8 |
* |
50 |
26 Feb 19 |
nicklas |
* @see org.json.simple.parser.JSONParser#parse(java.io.Reader, ContainerFactory) |
50 |
26 Feb 19 |
nicklas |
10 |
* |
50 |
26 Feb 19 |
nicklas |
* @author FangYidong<fangyidong@yahoo.com.cn> |
50 |
26 Feb 19 |
nicklas |
12 |
*/ |
50 |
26 Feb 19 |
nicklas |
13 |
public interface ContainerFactory { |
50 |
26 Feb 19 |
nicklas |
14 |
/** |
50 |
26 Feb 19 |
nicklas |
* @return A Map instance to store JSON object, or null if you want to use org.json.simple.JSONObject. |
50 |
26 Feb 19 |
nicklas |
16 |
*/ |
57 |
26 Feb 19 |
nicklas |
17 |
Map<String, Object> createObjectContainer(); |
50 |
26 Feb 19 |
nicklas |
18 |
|
50 |
26 Feb 19 |
nicklas |
19 |
/** |
50 |
26 Feb 19 |
nicklas |
* @return A List instance to store JSON array, or null if you want to use org.json.simple.JSONArray. |
50 |
26 Feb 19 |
nicklas |
21 |
*/ |
57 |
26 Feb 19 |
nicklas |
22 |
List<Object> creatArrayContainer(); |
50 |
26 Feb 19 |
nicklas |
23 |
} |