commit | ab74a18794b92136397237555dada0529e0e8a69 | [log] [tgz] |
---|---|---|
author | Radu Cotescu <cotescu@adobe.com> | Wed Jul 24 15:02:03 2019 +0200 |
committer | Radu Cotescu <cotescu@adobe.com> | Wed Jul 24 15:02:03 2019 +0200 |
tree | 023d3b5fbf79e3de9fad8a424e5953948fcfdb73 | |
parent | 45d17a048f7d21f08fab581f3b74dc640116545f [diff] |
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
This module is part of the Apache Sling project.
The Apache Sling Content Parser API provides support for parsing various files capable of abstracting a Sling resource tree. This API is a continuation of the one provided by the Apache Sling JCR Content Parser bundle. Although very similar, there are some notable changes:
org.apache.sling.contentparser.api
package;org.apache.sling.jcr.contentparser.ContentParserFactory
; to obtain a ContentParser
, given that they are exposed as OSGi services, one has to filter on the ContentParser.SERVICE_PROPERTY_CONTENT_TYPE
service registration property, to select the appropriate file format;ParserOptions
are now passed directly to the ContentParser#parse
method.Implementations of the API are made available from separate bundles:
org.apache.sling.contentparser.json
org.apache.sling.contentparser.xml
org.apache.sling.contentparser.xml-jcr
(the only module depending on the JCR / Jackrabbit APIs)