Package org.apache.xmlrpc.serializer
Class BaseXmlWriterFactory
- java.lang.Object
-
- org.apache.xmlrpc.serializer.BaseXmlWriterFactory
-
- All Implemented Interfaces:
XmlWriterFactory
- Direct Known Subclasses:
CharSetXmlWriterFactory
public class BaseXmlWriterFactory extends java.lang.Object implements XmlWriterFactory
The default instance ofXmlWriterFactorycreates instances ofXMLWriterImpl. This works for any Java version since 1.2
-
-
Constructor Summary
Constructors Constructor Description BaseXmlWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.ContentHandlergetXmlWriter(XmlRpcStreamConfig pConfig, java.io.OutputStream pStream)Creates a new instance ofContentHandler, writing to the givenOutputStream.protected org.apache.ws.commons.serialize.XMLWriternewXmlWriter()
-
-
-
Method Detail
-
newXmlWriter
protected org.apache.ws.commons.serialize.XMLWriter newXmlWriter()
-
getXmlWriter
public org.xml.sax.ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig, java.io.OutputStream pStream) throws XmlRpcException
Description copied from interface:XmlWriterFactoryCreates a new instance ofContentHandler, writing to the givenOutputStream.- Specified by:
getXmlWriterin interfaceXmlWriterFactory- Parameters:
pConfig- The request or response configuration.pStream- The destination stream.- Returns:
- A SAX handler, typically an instance of
XMLWriter. - Throws:
XmlRpcException- Creating the handler failed.
-
-