org.apache.xmlrpc.serializer
Class DefaultXMLWriterFactory
java.lang.Object
org.apache.xmlrpc.serializer.DefaultXMLWriterFactory
- All Implemented Interfaces:
- XmlWriterFactory
public class DefaultXMLWriterFactory
- extends Object
- implements XmlWriterFactory
The default implementation of 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultXMLWriterFactory
public DefaultXMLWriterFactory()
- Creates a new instance.
getXmlWriter
public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig,
OutputStream pStream)
throws XmlRpcException
- Description copied from interface:
XmlWriterFactory
- Creates a new instance of
ContentHandler
,
writing to the given OutputStream
.
- Specified by:
getXmlWriter
in interface XmlWriterFactory
- 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.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.