public class XmlMappingReader extends Object
This class can safely parse multiple input streams concurrently.
Constructor and Description |
---|
XmlMappingReader()
Constructs a new XmlMappingReader.
|
Modifier and Type | Method and Description |
---|---|
protected DocumentBuilderFactory |
createDocumentBuilderFactory()
Creates an XML document builder factory.
|
protected EntityResolver |
createEntityResolver()
Returns the XML entity resolver for loading the BeanIO schema definition or
other reference entities.
|
Document |
loadDocument(InputStream in)
Parses an XML BeanIO mapping file into a document object model (DOM).
|
public Document loadDocument(InputStream in) throws IOException, BeanIOConfigurationException
in
- the input stream to readIOException
- if an I/O error occursBeanIOConfigurationException
- if the XML mapping file is
malformed or invalidprotected DocumentBuilderFactory createDocumentBuilderFactory()
protected EntityResolver createEntityResolver()