Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xmlrpc.serializer
Class DefaultXMLWriterFactory

    java.lang.Object
      org.apache.xmlrpc.serializer.DefaultXMLWriterFactory

All 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
`org.xml.sax.ContentHandler` | `getXmlWriter(XmlRpcStreamConfig pConfig, java.io.OutputStream pStream)` Creates a new instance of `ContentHandler`, writing to the given `OutputStream`.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultXMLWriterFactory

    public DefaultXMLWriterFactory()

  Creates a new instance.

Method Detail

### getXmlWriter

    public org.xml.sax.ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig,
                                                   java.io.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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.