public abstract class AbstractXmlReader extends AbstractDataReader implements javax.xml.transform.ErrorListener
Constructor and Description |
---|
AbstractXmlReader() |
Modifier and Type | Method and Description |
---|---|
void |
error(javax.xml.transform.TransformerException ex)
Throws an error message
|
void |
fatalError(javax.xml.transform.TransformerException ex)
Throws a fatal error message
|
java.lang.Integer |
getSourcePosition()
It returns the source position of the data object returned by the next() method
you called last time.
|
void |
init()
Does some initialization.
|
ConfigProperties |
initConfig(org.w3c.dom.Node dataReaderNode,
ConfigProperties parentConfigProperties)
Do initialization for the configuration.
|
void |
warning(javax.xml.transform.TransformerException ex)
Prints a warning message
|
close, getConfigProperties, next, setConfigProperties
public ConfigProperties initConfig(org.w3c.dom.Node dataReaderNode, ConfigProperties parentConfigProperties) throws DataLoadException
initConfig
in interface DataReader
initConfig
in class AbstractDataReader
dataReaderNode
- the xml handler nodeparentConfigProperties
- the parent config propertiesDataLoadException
- this excpetion is thrown if there are some
errors during the initialization of the configuration.public java.lang.Integer getSourcePosition()
getSourcePosition
in interface DataReader
getSourcePosition
in class AbstractDataReader
public void init() throws DataLoadException
init
in interface DataReader
init
in class AbstractDataReader
DataLoadException
- if there are some errors in the initialization.public void error(javax.xml.transform.TransformerException ex) throws javax.xml.transform.TransformerException
error
in interface javax.xml.transform.ErrorListener
ex
- a transformer exceptionjavax.xml.transform.TransformerException
- if there are errors.public void fatalError(javax.xml.transform.TransformerException ex) throws javax.xml.transform.TransformerException
fatalError
in interface javax.xml.transform.ErrorListener
ex
- a transformer exceptionjavax.xml.transform.TransformerException
- if there are errors.public void warning(javax.xml.transform.TransformerException ex) throws javax.xml.transform.TransformerException
warning
in interface javax.xml.transform.ErrorListener
ex
- a transformer exceptionjavax.xml.transform.TransformerException
- if there are errors.