|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.config.xml.XmlConfigurationLoader
public class XmlConfigurationLoader
Loads BeanIO mapping files in XML format. This class is made thread safe
by delegating most of the parsing logic to XmlMappingParser
, for
which a new instance is created for each input stream that requires parsing.
Constructor Summary | |
---|---|
XmlConfigurationLoader(ClassLoader classLoader)
Constructs a new XmlConfigurationLoader. |
Method Summary | |
---|---|
protected XmlMappingParser |
createParser()
Creates a XmlMappingParser for reading an mapping input stream. |
protected XmlMappingReader |
getReader()
Returns the XmlMappingReader for reading XML mapping files
into a document object model (DOM). |
Collection<BeanIOConfig> |
loadConfiguration(InputStream in,
Properties properties)
Loads a BeanIO configuration from an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlConfigurationLoader(ClassLoader classLoader)
classLoader
- the ClassLoader
for loading imported resourcesMethod Detail |
---|
public Collection<BeanIOConfig> loadConfiguration(InputStream in, Properties properties) throws IOException, BeanIOConfigurationException
ConfigurationLoader
loadConfiguration
in interface ConfigurationLoader
in
- the input stream to read the configuration fromproperties
- the Properties
for expansion in the mapping file
IOException
- if an I/O error occurs
BeanIOConfigurationException
- if the configuration is invalid or malformedprotected XmlMappingParser createParser()
XmlMappingParser
for reading an mapping input stream.
protected XmlMappingReader getReader()
XmlMappingReader
for reading XML mapping files
into a document object model (DOM).
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |