public class DefaultXMLWriterFactory extends 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.| Constructor and Description |
|---|
DefaultXMLWriterFactory()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ContentHandler |
getXmlWriter(XmlRpcStreamConfig pConfig,
OutputStream pStream)
Creates a new instance of
ContentHandler,
writing to the given OutputStream. |
public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig, OutputStream pStream) throws XmlRpcException
XmlWriterFactoryContentHandler,
writing to the given OutputStream.getXmlWriter in interface XmlWriterFactorypConfig - The request or response configuration.pStream - The destination stream.XMLWriter.XmlRpcException - Creating the handler failed.Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.