Package org.apache.xmlrpc.serializer
Class BaseXmlWriterFactory
java.lang.Object
org.apache.xmlrpc.serializer.BaseXmlWriterFactory
- All Implemented Interfaces:
XmlWriterFactory
- Direct Known Subclasses:
CharSetXmlWriterFactory
The default instance of
XmlWriterFactory
creates
instances of XMLWriterImpl
.
This works for any Java version since 1.2-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetXmlWriter
(XmlRpcStreamConfig pConfig, OutputStream pStream) Creates a new instance ofContentHandler
, writing to the givenOutputStream
.protected org.apache.ws.commons.serialize.XMLWriter
-
Constructor Details
-
BaseXmlWriterFactory
public BaseXmlWriterFactory()
-
-
Method Details
-
newXmlWriter
protected org.apache.ws.commons.serialize.XMLWriter newXmlWriter() -
getXmlWriter
public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig, OutputStream pStream) throws XmlRpcException Description copied from interface:XmlWriterFactory
Creates a new instance ofContentHandler
, writing to the givenOutputStream
.- Specified by:
getXmlWriter
in 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.
-