public class ParsingEmbeddedDocumentExtractor extends java.lang.Object implements EmbeddedDocumentExtractor
Modifier and Type | Field and Description |
---|---|
private static java.io.File |
ABSTRACT_PATH |
private ParseContext |
context |
private static Parser |
DELEGATING_PARSER |
Constructor and Description |
---|
ParsingEmbeddedDocumentExtractor(ParseContext context) |
Modifier and Type | Method and Description |
---|---|
void |
parseEmbedded(java.io.InputStream stream,
org.xml.sax.ContentHandler handler,
Metadata metadata,
boolean outputHtml)
Processes the supplied embedded resource, calling the delegating
parser with the appropriate details.
|
boolean |
shouldParseEmbedded(Metadata metadata) |
private static final java.io.File ABSTRACT_PATH
private static final Parser DELEGATING_PARSER
private final ParseContext context
public ParsingEmbeddedDocumentExtractor(ParseContext context)
public boolean shouldParseEmbedded(Metadata metadata)
shouldParseEmbedded
in interface EmbeddedDocumentExtractor
public void parseEmbedded(java.io.InputStream stream, org.xml.sax.ContentHandler handler, Metadata metadata, boolean outputHtml) throws org.xml.sax.SAXException, java.io.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?org.xml.sax.SAXException
java.io.IOException