Package org.apache.xmlrpc.serializer
Class ExtSerializer
- java.lang.Object
-
- org.apache.xmlrpc.serializer.ExtSerializer
-
- All Implemented Interfaces:
TypeSerializer
- Direct Known Subclasses:
JaxbSerializer
,NodeSerializer
public abstract class ExtSerializer extends java.lang.Object implements TypeSerializer
Base class for external XML representations, like DOM, or JAXB.
-
-
Constructor Summary
Constructors Constructor Description ExtSerializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
getTagName()
Returns the unqualied tag name.protected abstract void
serialize(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject)
Performs the actual serialization.void
write(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject)
Writes the objectpObject
to the SAX handlerpHandler
.
-
-
-
Method Detail
-
getTagName
protected abstract java.lang.String getTagName()
Returns the unqualied tag name.
-
serialize
protected abstract void serialize(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException
Performs the actual serialization.- Throws:
org.xml.sax.SAXException
-
write
public void write(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException
Description copied from interface:TypeSerializer
Writes the objectpObject
to the SAX handlerpHandler
.- Specified by:
write
in interfaceTypeSerializer
- Parameters:
pHandler
- The destination handler.pObject
- The object being written.- Throws:
org.xml.sax.SAXException
- Writing the object failed.
-
-