public class XSSFBEventBasedExcelExtractor extends XSSFEventBasedExcelExtractor
XSSFEventBasedExcelExtractor.SheetTextExtractor| Modifier and Type | Field and Description |
|---|---|
static XSSFRelation[] |
SUPPORTED_TYPES |
concatenatePhoneticRuns, container, formulasNotResults, includeCellComments, includeHeadersFooters, includeSheetNames, includeTextBoxes, locale, properties| Constructor and Description |
|---|
XSSFBEventBasedExcelExtractor(OPCPackage container) |
XSSFBEventBasedExcelExtractor(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Processes the file and returns the text
|
void |
processSheet(XSSFSheetXMLHandler.SheetContentsHandler sheetContentsExtractor,
XSSFBStylesTable styles,
XSSFBCommentsTable comments,
SharedStrings strings,
java.io.InputStream sheetInputStream)
Processes the given sheet
|
void |
setFormulasNotResults(boolean formulasNotResults)
Should we return the formula itself, and not
the result it produces? Default is false
This is currently unsupported for xssfb
|
void |
setHandleHyperlinksInCells(boolean handleHyperlinksInCells) |
createSharedStringsTable, getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getFilesystem, getFormulasNotResults, getIncludeCellComments, getIncludeHeadersFooters, getIncludeSheetNames, getIncludeTextBoxes, getLocale, getPackage, isCloseFilesystem, processSheet, setCloseFilesystem, setConcatenatePhoneticRuns, setIncludeCellComments, setIncludeHeadersFooters, setIncludeSheetNames, setIncludeTextBoxes, setLocaleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckMaxTextSize, close, getMetadataTextExtractorpublic static final XSSFRelation[] SUPPORTED_TYPES
public XSSFBEventBasedExcelExtractor(java.lang.String path)
throws org.apache.xmlbeans.XmlException,
OpenXML4JException,
java.io.IOException
org.apache.xmlbeans.XmlExceptionOpenXML4JExceptionjava.io.IOExceptionpublic XSSFBEventBasedExcelExtractor(OPCPackage container) throws org.apache.xmlbeans.XmlException, OpenXML4JException, java.io.IOException
org.apache.xmlbeans.XmlExceptionOpenXML4JExceptionjava.io.IOExceptionpublic void setHandleHyperlinksInCells(boolean handleHyperlinksInCells)
public void setFormulasNotResults(boolean formulasNotResults)
setFormulasNotResults in interface ExcelExtractorsetFormulasNotResults in class XSSFEventBasedExcelExtractorpublic void processSheet(XSSFSheetXMLHandler.SheetContentsHandler sheetContentsExtractor, XSSFBStylesTable styles, XSSFBCommentsTable comments, SharedStrings strings, java.io.InputStream sheetInputStream) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getText()
getText in interface POITextExtractorgetText in interface ExcelExtractorgetText in class XSSFEventBasedExcelExtractor