com.ibm.commerce.foundation.dataload.datareader
Class XmlReader
- java.lang.Object
-
- com.ibm.commerce.foundation.dataload.datareader.AbstractDataReader
-
- com.ibm.commerce.foundation.dataload.datareader.AbstractXmlReader
-
- com.ibm.commerce.foundation.dataload.datareader.XmlReader
-
- All Implemented Interfaces:
- DataReader, javax.xml.transform.ErrorListener
public class XmlReader extends AbstractXmlReader
This class implements the DataReader interface to read an XML file. It requires an XML handler defined in the data load configuration file. It also supports an optional XSLT script defined in the configuration file.- See Also:
XmlHandler
-
-
Constructor Summary
Constructors Constructor and Description XmlReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
init()
Initializes the XML readerjava.lang.Object
next()
Implements the next() method for DataReader interface.-
Methods inherited from class com.ibm.commerce.foundation.dataload.datareader.AbstractXmlReader
error, fatalError, getSourcePosition, initConfig, warning
-
Methods inherited from class com.ibm.commerce.foundation.dataload.datareader.AbstractDataReader
close, getConfigProperties, setConfigProperties
-
-
-
-
Method Detail
-
init
public void init() throws DataLoadException
Initializes the XML reader- Specified by:
init
in interfaceDataReader
- Overrides:
init
in classAbstractXmlReader
- Throws:
DataLoadException
- if there are some errors.
-
next
public java.lang.Object next() throws DataLoadException
Implements the next() method for DataReader interface.- Specified by:
next
in interfaceDataReader
- Specified by:
next
in classAbstractDataReader
- Returns:
- it always returns null.
- Throws:
DataLoadException
- if there are some errors.
-
-