public class ParsingEmbeddedDocumentExtractor extends Object implements EmbeddedDocumentExtractor
Constructor and Description |
---|
ParsingEmbeddedDocumentExtractor(ParseContext context) |
Modifier and Type | Method and Description |
---|---|
void |
parseEmbedded(InputStream stream,
ContentHandler handler,
Metadata metadata,
boolean outputHtml)
Processes the supplied embedded resource, calling the delegating
parser with the appropriate details.
|
boolean |
shouldParseEmbedded(Metadata metadata) |
public ParsingEmbeddedDocumentExtractor(ParseContext context)
public boolean shouldParseEmbedded(Metadata metadata)
shouldParseEmbedded
in interface EmbeddedDocumentExtractor
public void parseEmbedded(InputStream stream, ContentHandler handler, Metadata metadata, boolean outputHtml) throws SAXException, IOException
EmbeddedDocumentExtractor
parseEmbedded
in interface EmbeddedDocumentExtractor
stream
- The embedded resourcehandler
- The handler to usemetadata
- The metadata for the embedded resourceoutputHtml
- Should we output HTML for this resource, or has the parser already done so?SAXException
IOException
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.