public class SupplementingParser extends AbstractMultipleParser
AbstractMultipleParser.MetadataPolicy
chosen.
Warning - currently only one Parser should output
any Content to the ContentHandler
, the rest
should only output Metadata
. A solution to
multiple-content is still being worked on...
AbstractMultipleParser.MetadataPolicy
Modifier and Type | Field and Description |
---|---|
static List<AbstractMultipleParser.MetadataPolicy> |
allowedPolicies
The different Metadata Policies we support (not discard)
|
METADATA_POLICY_CONFIG_KEY
Constructor and Description |
---|
SupplementingParser(MediaTypeRegistry registry,
AbstractMultipleParser.MetadataPolicy policy,
Collection<? extends Parser> parsers) |
SupplementingParser(MediaTypeRegistry registry,
AbstractMultipleParser.MetadataPolicy policy,
Parser... parsers) |
SupplementingParser(MediaTypeRegistry registry,
Collection<? extends Parser> parsers,
Map<String,Param> params) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
parserCompleted(Parser parser,
Metadata metadata,
ContentHandler handler,
ParseContext context,
Exception exception)
Used to notify implementations that a Parser has Finished
or Failed, and to allow them to decide to continue or
abort further parsing
|
getAllParsers, getMediaTypeRegistry, getMetadataPolicy, getMetadataPolicy, getSupportedTypes, mergeMetadata, parse, parse, parserPrepare, setMediaTypeRegistry
parse
public static final List<AbstractMultipleParser.MetadataPolicy> allowedPolicies
public SupplementingParser(MediaTypeRegistry registry, Collection<? extends Parser> parsers, Map<String,Param> params)
public SupplementingParser(MediaTypeRegistry registry, AbstractMultipleParser.MetadataPolicy policy, Parser... parsers)
public SupplementingParser(MediaTypeRegistry registry, AbstractMultipleParser.MetadataPolicy policy, Collection<? extends Parser> parsers)
protected boolean parserCompleted(Parser parser, Metadata metadata, ContentHandler handler, ParseContext context, Exception exception)
AbstractMultipleParser
parserCompleted
in class AbstractMultipleParser
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.