BeanIO 1.2.3

org.beanio.stream.xml
Class XmlReaderFactory

java.lang.Object
  extended by org.beanio.stream.xml.XmlReaderFactory
All Implemented Interfaces:
RecordReaderFactory, XmlStreamConfigurationAware

public class XmlReaderFactory
extends Object
implements RecordReaderFactory, XmlStreamConfigurationAware

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

Since:
1.1
Author:
Kevin Seim
See Also:
XmlReader

Constructor Summary
XmlReaderFactory()
          Constructs a new XmlReaderFactory.
 
Method Summary
 RecordReader createReader(Reader in)
          Creates a new RecordReader to read from an input stream.
 void setConfiguration(XmlStreamConfiguration source)
          This method is invoked by a XML stream definition when a RecordReader implementation is registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReaderFactory

public XmlReaderFactory()
Constructs a new XmlReaderFactory.

Method Detail

createReader

public RecordReader createReader(Reader in)
                          throws IllegalArgumentException
Description copied from interface: RecordReaderFactory
Creates a new RecordReader to read from an input stream.

Specified by:
createReader in interface RecordReaderFactory
Parameters:
in - the input stream to read from
Returns:
the new RecordReader
Throws:
IllegalArgumentException - if the factory is improperly configured and a RecordReader cannot be created

setConfiguration

public void setConfiguration(XmlStreamConfiguration source)
Description copied from interface: XmlStreamConfigurationAware
This method is invoked by a XML stream definition when a RecordReader implementation is registered.

Specified by:
setConfiguration in interface XmlStreamConfigurationAware
Parameters:
source - the XML stream configuration

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim