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, withTypes
parse
public 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 Parser
parse
in class ParserDecorator
stream
- 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–2016 The Apache Software Foundation. All rights reserved.