org.apache.xmlrpc.serializer

Class DefaultXMLWriterFactory

Implemented Interfaces:
XmlWriterFactory

public class DefaultXMLWriterFactory
extends java.lang.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.

Constructor Summary

DefaultXMLWriterFactory()
Creates a new instance.

Method Summary

ContentHandler
getXmlWriter(XmlRpcStreamConfig pConfig, OutputStream pStream)

Constructor Details

DefaultXMLWriterFactory

public DefaultXMLWriterFactory()
Creates a new instance.

Method Details

getXmlWriter

public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig,
                                   OutputStream pStream)
            throws XmlRpcException
Specified by:
getXmlWriter in interface XmlWriterFactory

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.