org.apache.xmlrpc.serializer
Class BaseXmlWriterFactory

java.lang.Object
  extended by org.apache.xmlrpc.serializer.BaseXmlWriterFactory
All Implemented Interfaces:
XmlWriterFactory
Direct Known Subclasses:
CharSetXmlWriterFactory

public class BaseXmlWriterFactory
extends 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


Constructor Summary
BaseXmlWriterFactory()
           
 
Method Summary
 ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig, OutputStream pStream)
          Creates a new instance of ContentHandler, writing to the given OutputStream.
protected  XMLWriter newXmlWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseXmlWriterFactory

public BaseXmlWriterFactory()
Method Detail

newXmlWriter

protected XMLWriter newXmlWriter()

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.