Interface DocumentLoader
- All Known Implementing Classes:
DefaultDocumentLoader
public interface DocumentLoader
A generic strategy interface encapsulating the logic to load an XML-based document.
- Author:
- Keith Donald
-
Method Summary
Modifier and TypeMethodDescriptionloadDocument
(org.springframework.core.io.Resource resource) Load the XML-based document from the external resource.
-
Method Details
-
loadDocument
Document loadDocument(org.springframework.core.io.Resource resource) throws IOException, ParserConfigurationException, SAXException Load the XML-based document from the external resource.- Parameters:
resource
- the document resource- Returns:
- the loaded (parsed) document
- Throws:
IOException
- an exception occured accessing the resource input streamParserConfigurationException
- an exception occured building the document parserSAXException
- a error occured during document parsing
-