Class UnpackExtractor
java.lang.Object
org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor
org.apache.tika.pipes.core.extractor.UnpackExtractor
- All Implemented Interfaces:
EmbeddedDocumentExtractor
Embedded document extractor that parses and unpacks embedded documents,
extracting both text/metadata and raw bytes.
Stateless, like its parent: per-request state (the running byte count) is held in
UnpackedByteCount, bound into the request's ParseContext alongside its
UnpackHandler rather than captured on this extractor.
- Since:
- Apache Tika 3.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseEmbedded(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context, boolean outputHtml) Processes the supplied embedded resource, calling the delegating parser with the appropriate details.Methods inherited from class org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor
checkEmbeddedLimits, getDelegatingParser, isWriteFileNameToContent, recordException, shouldParseEmbedded
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
UnpackExtractor
public UnpackExtractor()
-
-
Method Details
-
parseEmbedded
public void parseEmbedded(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context, boolean outputHtml) throws SAXException, IOException Description copied from interface:EmbeddedDocumentExtractorProcesses the supplied embedded resource, calling the delegating parser with the appropriate details.- Specified by:
parseEmbeddedin interfaceEmbeddedDocumentExtractor- Overrides:
parseEmbeddedin classParsingEmbeddedDocumentExtractor- Parameters:
tis- The embedded resourcehandler- The handler to usemetadata- The metadata for the embedded resourcecontext- The parse contextoutputHtml- Should we output HTML for this resource, or has the parser already done so?- Throws:
SAXExceptionIOException
-