public interface XmlContentImporter extends ContentImporter
ContentImporter
which imports contents from XML files.supports(Document)
method is used instead of the ContentImporter.supports(InputStream, String)
,
so that the XML file is parsed only once.Modifier and Type | Method and Description |
---|---|
boolean |
supports(Document document)
Tests if the
XmlContentImporter is able to import the corresponding Document. |
getPriority, importContents, supports
boolean supports(Document document) throws IOException
XmlContentImporter
is able to import the corresponding Document.document
- the XML Document
to test.XmlContentImporter
can import the corresponding stream, false otherwise.IOException
- if an error occurs.