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