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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 package org.json.simple.parser;
     3 import java.util.List;
     4 import java.util.Map;
     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, ContainerFactory)
    10  * 
    11  * @author FangYidong<fangyidong@yahoo.com.cn>
    12  */
    13 public interface ContainerFactory {
    14 	/**
    15 	 * @return A Map instance to store JSON object, or null if you want to use org.json.simple.JSONObject.
    16 	 */
    17 	Map createObjectContainer();
    19 	/**
    20 	 * @return A List instance to store JSON array, or null if you want to use org.json.simple.JSONArray. 
    21 	 */
    22 	List creatArrayContainer();
    23 }

mercurial