mobile/android/thirdparty/org/json/simple/parser/ContainerFactory.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/thirdparty/org/json/simple/parser/ContainerFactory.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +package org.json.simple.parser;
     1.5 +
     1.6 +import java.util.List;
     1.7 +import java.util.Map;
     1.8 +
     1.9 +/**
    1.10 + * Container factory for creating containers for JSON object and JSON array.
    1.11 + * 
    1.12 + * @see org.json.simple.parser.JSONParser#parse(java.io.Reader, ContainerFactory)
    1.13 + * 
    1.14 + * @author FangYidong<fangyidong@yahoo.com.cn>
    1.15 + */
    1.16 +public interface ContainerFactory {
    1.17 +	/**
    1.18 +	 * @return A Map instance to store JSON object, or null if you want to use org.json.simple.JSONObject.
    1.19 +	 */
    1.20 +	Map createObjectContainer();
    1.21 +	
    1.22 +	/**
    1.23 +	 * @return A List instance to store JSON array, or null if you want to use org.json.simple.JSONArray. 
    1.24 +	 */
    1.25 +	List creatArrayContainer();
    1.26 +}

mercurial