org.apache.xmlrpc.serializer

Class BaseXmlWriterFactory

Implemented Interfaces:
XmlWriterFactory
Known Direct Subclasses:
CharSetXmlWriterFactory

public class BaseXmlWriterFactory
extends java.lang.Object
implements XmlWriterFactory

The default instance of XmlWriterFactory creates instances of org.apache.ws.commons.serialize.XMLWriterImpl. This works for any Java version since 1.2

Method Summary

ContentHandler
getXmlWriter(XmlRpcStreamConfig pConfig, OutputStream pStream)
Creates a new instance of ContentHandler, writing to the given java.io.OutputStream.
protected XMLWriter
newXmlWriter()

Method Details

getXmlWriter

public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig,
                                   OutputStream pStream)
            throws XmlRpcException
Creates a new instance of ContentHandler, writing to the given java.io.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.

newXmlWriter

protected XMLWriter newXmlWriter()

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