michael@0: package org.json.simple.parser; michael@0: michael@0: import java.util.List; michael@0: import java.util.Map; michael@0: michael@0: /** michael@0: * Container factory for creating containers for JSON object and JSON array. michael@0: * michael@0: * @see org.json.simple.parser.JSONParser#parse(java.io.Reader, ContainerFactory) michael@0: * michael@0: * @author FangYidong michael@0: */ michael@0: public interface ContainerFactory { michael@0: /** michael@0: * @return A Map instance to store JSON object, or null if you want to use org.json.simple.JSONObject. michael@0: */ michael@0: Map createObjectContainer(); michael@0: michael@0: /** michael@0: * @return A List instance to store JSON array, or null if you want to use org.json.simple.JSONArray. michael@0: */ michael@0: List creatArrayContainer(); michael@0: }