org.beanio.stream.xml
Class XmlWriterFactory
java.lang.Object
org.beanio.stream.xml.XmlWriterConfiguration
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
Methods inherited from class org.beanio.stream.xml.XmlWriterConfiguration |
addNamespace, clone, getEncoding, getIndentation, getLineSeparator, getNamespaceMap, getVersion, isIndentationEnabled, isSuppressHeader, setEncoding, setIndentation, setLineSeparator, setNamespaces, setSuppressHeader, setVersion |
XmlWriterFactory
public XmlWriterFactory()
- Constructs a new XmlWriterFactory.
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
Copyright © 2010-2012 Kevin Seim