org.apache.xmlrpc.serializer

Interface XmlWriterFactory

public interface XmlWriterFactory

This factory is responsible for creating instances of {@link org.apache.ws.commons.serialize.XMLWriter}.
Method Summary
ContentHandlergetXmlWriter(XmlRpcStreamConfig pConfig, OutputStream pStream)
Creates a new instance of {@link ContentHandler}, writing to the given {@link java.io.OutputStream}.

Method Detail

getXmlWriter

public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig, OutputStream pStream)
Creates a new instance of {@link ContentHandler}, writing to the given {@link java.io.OutputStream}.

Parameters: pStream The destination stream. pConfig The request or response configuration.

Returns: A SAX handler, typically an instance of {@link XMLWriter}.

Throws: XmlRpcException Creating the handler failed.

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