FileDocCategorySizeDatePackage
JSONArray.javaAPI DocAzureus 3.0.3.4806Mon Jun 04 17:43:56 BST 2007org.json.simple

JSONArray

public class JSONArray extends ArrayList
author
FangYidong

Fields Summary
Constructors Summary
public JSONArray()

		super();
	
public JSONArray(Collection arg0)

		super(arg0);
	
public JSONArray(int initialCapacity)

		super(initialCapacity);
	
Methods Summary
public java.lang.StringtoString()

		ItemList list=new ItemList();
		
		Iterator iter=iterator();
		
		while(iter.hasNext()){
			Object value=iter.next();				
			if(value instanceof String){
				list.add("\""+JSONObject.escape((String)value)+"\"");
			}
			else
				list.add(String.valueOf(value));
		}
		return "["+list.toString()+"]";