public class ParserPostProcessor extends ParserDecorator
| Constructor and Description |
|---|
ParserPostProcessor(Parser parser)
Creates a post-processing decorator for the given parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(InputStream stream,
ContentHandler handler,
Metadata metadata,
ParseContext context)
Forwards the call to the delegated parser and post-processes the
results as described above.
|
getDecorationName, getSupportedTypes, getWrappedParser, withFallbacks, withoutTypes, withTypesparsepublic ParserPostProcessor(Parser parser)
parser - the parser to be decoratedpublic void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException
parse in interface Parserparse in class ParserDecoratorstream - 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–2021 The Apache Software Foundation. All rights reserved.