Package org.apache.poi.xssf.extractor
Class XSSFBEventBasedExcelExtractor
- java.lang.Object
-
- org.apache.poi.xssf.extractor.XSSFEventBasedExcelExtractor
-
- org.apache.poi.xssf.extractor.XSSFBEventBasedExcelExtractor
-
- All Implemented Interfaces:
Closeable,AutoCloseable,POITextExtractor,POIXMLTextExtractor,ExcelExtractor
public class XSSFBEventBasedExcelExtractor extends XSSFEventBasedExcelExtractor
Implementation of a text extractor or xlsb Excel files that uses SAX-like binary parsing.- Since:
- 3.16-beta3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.poi.xssf.extractor.XSSFEventBasedExcelExtractor
XSSFEventBasedExcelExtractor.SheetTextExtractor
-
-
Field Summary
Fields Modifier and Type Field Description static List<XSSFRelation>SUPPORTED_TYPES-
Fields inherited from class org.apache.poi.xssf.extractor.XSSFEventBasedExcelExtractor
concatenatePhoneticRuns, container, formulasNotResults, includeCellComments, includeHeadersFooters, includeSheetNames, includeTextBoxes, locale, properties
-
-
Constructor Summary
Constructors Constructor Description XSSFBEventBasedExcelExtractor(String path)XSSFBEventBasedExcelExtractor(OPCPackage container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetText()Processes the file and returns the textvoidprocessSheet(XSSFSheetXMLHandler.SheetContentsHandler sheetContentsExtractor, XSSFBStylesTable styles, XSSFBCommentsTable comments, SharedStrings strings, InputStream sheetInputStream)Processes the given sheetvoidsetFormulasNotResults(boolean formulasNotResults)Should we return the formula itself, and not the result it produces? Default is false This is currently unsupported for xssfbvoidsetHandleHyperlinksInCells(boolean handleHyperlinksInCells)-
Methods inherited from class org.apache.poi.xssf.extractor.XSSFEventBasedExcelExtractor
createSharedStringsTable, getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getFilesystem, getFormulasNotResults, getIncludeCellComments, getIncludeHeadersFooters, getIncludeSheetNames, getIncludeTextBoxes, getLocale, getPackage, isCloseFilesystem, processSheet, setCloseFilesystem, setConcatenatePhoneticRuns, setIncludeCellComments, setIncludeHeadersFooters, setIncludeSheetNames, setIncludeTextBoxes, setLocale
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor
checkMaxTextSize, close, getMetadataTextExtractor
-
-
-
-
Field Detail
-
SUPPORTED_TYPES
public static final List<XSSFRelation> SUPPORTED_TYPES
-
-
Constructor Detail
-
XSSFBEventBasedExcelExtractor
public XSSFBEventBasedExcelExtractor(String path) throws XmlException, OpenXML4JException, IOException
-
XSSFBEventBasedExcelExtractor
public XSSFBEventBasedExcelExtractor(OPCPackage container) throws XmlException, OpenXML4JException, IOException
-
-
Method Detail
-
setHandleHyperlinksInCells
public void setHandleHyperlinksInCells(boolean handleHyperlinksInCells)
-
setFormulasNotResults
public 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- Specified by:
setFormulasNotResultsin interfaceExcelExtractor- Overrides:
setFormulasNotResultsin classXSSFEventBasedExcelExtractor
-
processSheet
public void processSheet(XSSFSheetXMLHandler.SheetContentsHandler sheetContentsExtractor, XSSFBStylesTable styles, XSSFBCommentsTable comments, SharedStrings strings, InputStream sheetInputStream) throws IOException
Processes the given sheet- Throws:
IOException
-
getText
public String getText()
Processes the file and returns the text- Specified by:
getTextin interfaceExcelExtractor- Specified by:
getTextin interfacePOITextExtractor- Overrides:
getTextin classXSSFEventBasedExcelExtractor
-
-