public class ParsingEmbeddedDocumentExtractor extends Object implements EmbeddedDocumentExtractor
| Constructor and Description |
|---|
ParsingEmbeddedDocumentExtractor(ParseContext context) |
| Modifier and Type | Method and Description |
|---|---|
Parser |
getDelegatingParser() |
void |
parseEmbedded(InputStream stream,
ContentHandler handler,
Metadata metadata,
boolean outputHtml)
Processes the supplied embedded resource, calling the delegating
parser with the appropriate details.
|
void |
setWriteFileNameToContent(boolean writeFileNameToContent) |
boolean |
shouldParseEmbedded(Metadata metadata) |
public ParsingEmbeddedDocumentExtractor(ParseContext context)
public boolean shouldParseEmbedded(Metadata metadata)
shouldParseEmbedded in interface EmbeddedDocumentExtractorpublic void parseEmbedded(InputStream stream, ContentHandler handler, Metadata metadata, boolean outputHtml) throws SAXException, IOException
EmbeddedDocumentExtractorparseEmbedded in interface EmbeddedDocumentExtractorstream - 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?SAXExceptionIOExceptionpublic Parser getDelegatingParser()
public void setWriteFileNameToContent(boolean writeFileNameToContent)
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.