json-simple/vendor/json-simple-1.1.1/src/main/java/org/json/simple/parser/ContainerFactory.java

Code
Comments
Other
Rev Date Author Line
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 7  * Container factory for creating containers for JSON object and JSON array.
50 26 Feb 19 nicklas 8  * 
50 26 Feb 19 nicklas 9  * @see org.json.simple.parser.JSONParser#parse(java.io.Reader, ContainerFactory)
50 26 Feb 19 nicklas 10  * 
50 26 Feb 19 nicklas 11  * @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 15    * @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    */
50 26 Feb 19 nicklas 17   Map createObjectContainer();
50 26 Feb 19 nicklas 18   
50 26 Feb 19 nicklas 19   /**
50 26 Feb 19 nicklas 20    * @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    */
50 26 Feb 19 nicklas 22   List creatArrayContainer();
50 26 Feb 19 nicklas 23 }