|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.config.xml.XmlMappingReader
public class XmlMappingReader
Reads a BeanIO XML mapping file into an XML document object model (DOM) and validates the XML using the BeanIO mapping schema.
This class can safely parse multiple input streams concurrently.
Constructor Summary | |
---|---|
XmlMappingReader()
Constructs a new XmlMappingReader. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlMappingReader()
Method Detail |
---|
public Document loadDocument(InputStream in) throws IOException, BeanIOConfigurationException
in
- the input stream to read
IOException
- if an I/O error occurs
BeanIOConfigurationException
- if the XML mapping file is
malformed or invalidprotected DocumentBuilderFactory createDocumentBuilderFactory()
protected EntityResolver createEntityResolver()
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |