net.tomp2p.examples.json.simple.parser
Interface ContainerFactory


public interface ContainerFactory

Container factory for creating containers for JSON object and JSON array.

Author:
FangYidong
See Also:
org.json.simple.parser.JSONParser#parse(java.io.Reader, ContainerFactory)

Method Summary
 List creatArrayContainer()
           
 Map createObjectContainer()
           
 

Method Detail

createObjectContainer

Map createObjectContainer()
Returns:
A Map instance to store JSON object, or null if you want to use org.json.simple.JSONObject.

creatArrayContainer

List creatArrayContainer()
Returns:
A List instance to store JSON array, or null if you want to use org.json.simple.JSONArray.


Copyright © 2012. All Rights Reserved.