Class XSSFExcelExtractorDecorator
java.lang.Object
org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor
org.apache.tika.parser.microsoft.ooxml.XSSFExcelExtractorDecorator
- All Implemented Interfaces:
OOXMLExtractor
- Direct Known Subclasses:
XSSFBExcelExtractorDecorator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classTurns formatted sheet events into HTMLprotected static classCaptures information on interesting tags, whilst delegating the main work to the formatting handler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.poi.ss.usermodel.DataFormatterprotected static org.apache.poi.xssf.usermodel.helpers.HeaderFooterHelperAllows access to headers/footers from raw xml stringsprotected Metadataprotected ParseContextprotected final List<org.apache.poi.openxml4j.opc.PackagePart> Fields inherited from class AbstractOOXMLExtractor
config, EMBEDDED_RELATIONSHIPS, extractor, opcPackage -
Constructor Summary
ConstructorsConstructorDescriptionXSSFExcelExtractorDecorator(ParseContext context, org.apache.poi.ooxml.extractor.POIXMLTextExtractor extractor, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDrawingHyperLinks(org.apache.poi.openxml4j.opc.PackagePart sheetPart) protected voidbuildXHTML(XHTMLContentHandler xhtml) Populates theXHTMLContentHandlerobject received as parameter.protected voidextractHeaderFooter(String hf, XHTMLContentHandler xhtml) protected voidextractHyperLinks(org.apache.poi.openxml4j.opc.PackagePart sheetPart, XHTMLContentHandler xhtml) protected List<org.apache.poi.openxml4j.opc.PackagePart> In Excel files, sheets have things embedded in them, and sheet drawings which have the imagesPOIXMLTextExtractor.getMetadataTextExtractor()not yet supported for OOXML by POI.voidgetXHTML(ContentHandler handler, Metadata metadata, ParseContext context) Parses the document into a sequence of XHTML SAX events sent to the given content handler.protected voidprocessDrawings(org.apache.poi.openxml4j.opc.PackagePart sheetPart, XHTMLContentHandler xhtml) voidprocessSheet(org.apache.tika.parser.microsoft.ooxml.TikaSheetContentsHandler sheetContentsHandler, org.apache.tika.parser.microsoft.ooxml.XSSFCommentsShim commentsShim, org.apache.tika.parser.microsoft.ooxml.XSSFStylesShim stylesShim, org.apache.tika.parser.microsoft.ooxml.XSSFSharedStringsShim stringsShim, InputStream sheetInputStream) Methods inherited from class AbstractOOXMLExtractor
getDocument, getEmbeddedPartMetadataMap, getJustFileName, getParseContext, handleEmbeddedFile, loadLinkedRelationships, safeGetRelatedPart
-
Field Details
-
hfHelper
protected static org.apache.poi.xssf.usermodel.helpers.HeaderFooterHelper hfHelperAllows access to headers/footers from raw xml strings -
formatter
protected final org.apache.poi.ss.usermodel.DataFormatter formatter -
sheetParts
-
drawingHyperlinks
-
metadata
-
parseContext
-
-
Constructor Details
-
XSSFExcelExtractorDecorator
public XSSFExcelExtractorDecorator(ParseContext context, org.apache.poi.ooxml.extractor.POIXMLTextExtractor extractor, Locale locale)
-
-
Method Details
-
getMetadataExtractor
Description copied from interface:OOXMLExtractorPOIXMLTextExtractor.getMetadataTextExtractor()not yet supported for OOXML by POI.- Specified by:
getMetadataExtractorin interfaceOOXMLExtractor- Overrides:
getMetadataExtractorin classAbstractOOXMLExtractor- See Also:
-
getXHTML
public void getXHTML(ContentHandler handler, Metadata metadata, ParseContext context) throws SAXException, IOException, TikaException, org.apache.xmlbeans.XmlException Description copied from interface:OOXMLExtractorParses the document into a sequence of XHTML SAX events sent to the given content handler.- Specified by:
getXHTMLin interfaceOOXMLExtractor- Overrides:
getXHTMLin classAbstractOOXMLExtractor- Throws:
SAXExceptionIOExceptionTikaExceptionorg.apache.xmlbeans.XmlException- See Also:
-
buildXHTML
Description copied from class:AbstractOOXMLExtractorPopulates theXHTMLContentHandlerobject received as parameter.- Specified by:
buildXHTMLin classAbstractOOXMLExtractor- Throws:
SAXExceptionIOException- See Also:
-
addDrawingHyperLinks
protected void addDrawingHyperLinks(org.apache.poi.openxml4j.opc.PackagePart sheetPart) -
extractHyperLinks
protected void extractHyperLinks(org.apache.poi.openxml4j.opc.PackagePart sheetPart, XHTMLContentHandler xhtml) throws SAXException - Throws:
SAXException
-
processDrawings
protected void processDrawings(org.apache.poi.openxml4j.opc.PackagePart sheetPart, XHTMLContentHandler xhtml) throws SAXException - Throws:
SAXException
-
getMainDocumentParts
protected List<org.apache.poi.openxml4j.opc.PackagePart> getMainDocumentParts() throws TikaExceptionIn Excel files, sheets have things embedded in them, and sheet drawings which have the images- Specified by:
getMainDocumentPartsin classAbstractOOXMLExtractor- Throws:
TikaException
-