SLING-8570 - Extract a generic Content Parser API from org.apache.sling.jcr.contentparser with pluggable implementations

* removed the ParseException and replaced it with IOException
* minor code cleanup
* improved code coverage
2 files changed
tree: 5c2df100b3dab0c2be0e5999fce5c3685b2cbc95
  1. .gitignore
  2. CODE_OF_CONDUCT.md
  3. CONTRIBUTING.md
  4. Jenkinsfile
  5. LICENSE
  6. README.md
  7. pom.xml
  8. src/
README.md

Build Status Test Status License contentparser

Apache Sling Content Parser for JackRabbit FileVault XML

This module is part of the Apache Sling project.

The Apache Sling Content Parser for JackRabbit FileVault XML provides support for parsing XML files into Apache Sling resource trees, by implementing the API provided by the org.apache.sling.contentparser.api bundle.

To obtain a reference to the JackRabbit FileVault XML content parser just filter on the ContentParser.SERVICE_PROPERTY_CONTENT_TYPE service registration property:

    @Reference(target = "(" + ContentParser.SERVICE_PROPERTY_CONTENT_TYPE + "=jcr-xml)")
    private ContentParser jcrXmlParser;