public abstract class CryptoParser extends DelegatingParser
| Constructor and Description |
|---|
CryptoParser(String transformation,
Provider provider,
Set<MediaType> types) |
CryptoParser(String transformation,
Set<MediaType> types) |
| Modifier and Type | Method and Description |
|---|---|
Set<MediaType> |
getSupportedTypes(ParseContext context)
Returns the set of media types supported by this parser when used
with the given parse context.
|
void |
parse(InputStream stream,
ContentHandler handler,
Metadata metadata,
ParseContext context)
Looks up the delegate parser from the parsing context and
delegates the parse operation to it.
|
getDelegateParserparsepublic Set<MediaType> getSupportedTypes(ParseContext context)
ParsergetSupportedTypes in interface ParsergetSupportedTypes in class DelegatingParsercontext - parse contextpublic void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException
DelegatingParserSubclasses should override this method to parse the top level structure of the given document stream. Parsed sub-streams can be passed to this base class method to be parsed by the configured delegate parser.
parse in interface Parserparse in class DelegatingParserstream - the document stream (input)handler - handler for the XHTML SAX events (output)metadata - document metadata (input and output)context - parse contextIOException - if the document stream could not be readSAXException - if the SAX events could not be processedTikaException - if the document could not be parsedCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.