Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 package org.apache.xmlrpc.serializer;
00020
00021 import java.util.List;
00022
00023 import org.apache.xmlrpc.common.TypeFactory;
00024 import org.apache.xmlrpc.common.XmlRpcStreamConfig;
00025 import org.xml.sax.ContentHandler;
00026 import org.xml.sax.SAXException;
00027
00028
00031 public class ListSerializer extends ObjectArraySerializer {
00036 public ListSerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig) {
00037 super(pTypeFactory, pConfig);
00038 }
00039 protected void writeData(ContentHandler pHandler, Object pObject) throws SAXException {
00040 List data = (List) pObject;
00041 for (int i = 0; i < data.size(); i++) {
00042 writeObject(pHandler, data.get(i));
00043 }
00044 }
00045 }