public static ContentParser create()

in src/main/java/org/apache/sling/jcr/contentparser/ContentParserFactory.java [55:66]


    public static ContentParser create(ContentType type, ParserOptions options) {
        switch (type) {
            case JSON:
                return new JsonContentParser(options);
            case XML:
                return new XmlContentParser(options);
            case JCR_XML:
                return new JcrXmlContentParser(options);
            default:
                throw new IllegalArgumentException("Unsupported type: " + type);
        }
    }