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(java.io.InputStream stream,
org.xml.sax.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(java.io.InputStream stream, org.xml.sax.ContentHandler handler, Metadata metadata, ParseContext context) throws java.io.IOException, org.xml.sax.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 contextjava.io.IOException
- if the document stream could not be readorg.xml.sax.SAXException
- if the SAX events could not be processedTikaException
- if the document could not be parsedCopyright © 2010 - 2020 Adobe. All Rights Reserved