BeanIO 1.2.3

org.beanio.stream.xml
Class XmlWriterFactory

java.lang.Object
  extended by org.beanio.stream.xml.XmlWriterConfiguration
      extended by org.beanio.stream.xml.XmlWriterFactory
All Implemented Interfaces:
Cloneable, RecordWriterFactory

public class XmlWriterFactory
extends XmlWriterConfiguration
implements RecordWriterFactory

This record reader factory is used to create and configure a XmlWriter.

Since:
1.1
Author:
Kevin Seim

Constructor Summary
XmlWriterFactory()
          Constructs a new XmlWriterFactory.
 
Method Summary
 RecordWriter createWriter(Writer out)
          Creates a new RecordWriter to write to an output stream.
 
Methods inherited from class org.beanio.stream.xml.XmlWriterConfiguration
addNamespace, clone, getEncoding, getIndentation, getLineSeparator, getNamespaceMap, getVersion, isIndentationEnabled, isSuppressHeader, setEncoding, setIndentation, setLineSeparator, setNamespaces, setSuppressHeader, setVersion
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlWriterFactory

public XmlWriterFactory()
Constructs a new XmlWriterFactory.

Method Detail

createWriter

public RecordWriter createWriter(Writer out)
                          throws IllegalArgumentException
Description copied from interface: RecordWriterFactory
Creates a new RecordWriter to write to an output stream.

Specified by:
createWriter in interface RecordWriterFactory
Parameters:
out - the output stream to write to
Returns:
the new RecordWriter
Throws:
IllegalArgumentException - if the factory is improperly configured and a RecordWriter cannot be created

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim