public class DefaultXMLWriterFactory extends java.lang.Object implements XmlWriterFactory
XmlWriterFactory
tests, whether the CharSetXmlWriterFactory
is usable. This is the case, when running in Java 1.4 or later. If so,
this factory is used. Otherwise, the
BaseXmlWriterFactory
is used as a
fallback.Modifier and Type | Field and Description |
---|---|
private XmlWriterFactory |
factory |
Constructor and Description |
---|
DefaultXMLWriterFactory()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
org.xml.sax.ContentHandler |
getXmlWriter(XmlRpcStreamConfig pConfig,
java.io.OutputStream pStream)
Creates a new instance of
ContentHandler ,
writing to the given OutputStream . |
private final XmlWriterFactory factory
public org.xml.sax.ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig, java.io.OutputStream pStream) throws XmlRpcException
XmlWriterFactory
ContentHandler
,
writing to the given OutputStream
.getXmlWriter
in interface XmlWriterFactory
pConfig
- The request or response configuration.pStream
- The destination stream.XMLWriter
.XmlRpcException
- Creating the handler failed.