Package org.apache.xmlrpc.serializer
Class ObjectArraySerializer
- java.lang.Object
-
- org.apache.xmlrpc.serializer.TypeSerializerImpl
-
- org.apache.xmlrpc.serializer.ObjectArraySerializer
-
- All Implemented Interfaces:
TypeSerializer
- Direct Known Subclasses:
ListSerializer
public class ObjectArraySerializer extends TypeSerializerImpl
ATypeSerializerfor object arrays.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARRAY_TAGTag name of an array value.private XmlRpcStreamConfigconfigstatic java.lang.StringDATA_TAGTag name of an arrays data.private TypeFactorytypeFactory-
Fields inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
VALUE_TAG, ZERO_ATTRIBUTES
-
-
Constructor Summary
Constructors Constructor Description ObjectArraySerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject)Writes the objectpObjectto the SAX handlerpHandler.protected voidwriteData(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject)protected voidwriteObject(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject)-
Methods inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
write, write, write
-
-
-
-
Field Detail
-
ARRAY_TAG
public static final java.lang.String ARRAY_TAG
Tag name of an array value.- See Also:
- Constant Field Values
-
DATA_TAG
public static final java.lang.String DATA_TAG
Tag name of an arrays data.- See Also:
- Constant Field Values
-
config
private final XmlRpcStreamConfig config
-
typeFactory
private final TypeFactory typeFactory
-
-
Constructor Detail
-
ObjectArraySerializer
public ObjectArraySerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)
Creates a new instance.- Parameters:
pTypeFactory- The factory being used for creating serializers.pConfig- The configuration being used for creating serializers.
-
-
Method Detail
-
writeObject
protected void writeObject(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
writeData
protected void writeData(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
write
public void write(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXExceptionDescription copied from interface:TypeSerializerWrites the objectpObjectto the SAX handlerpHandler.- Parameters:
pHandler- The destination handler.pObject- The object being written.- Throws:
org.xml.sax.SAXException- Writing the object failed.
-
-