Package org.apache.poi.xssf.extractor
Class XSSFEventBasedExcelExtractor.SheetTextExtractor
java.lang.Object
org.apache.poi.xssf.extractor.XSSFEventBasedExcelExtractor.SheetTextExtractor
- All Implemented Interfaces:
XSSFSheetXMLHandler.SheetContentsHandler
- Enclosing class:
XSSFEventBasedExcelExtractor
protected class XSSFEventBasedExcelExtractor.SheetTextExtractor
extends Object
implements XSSFSheetXMLHandler.SheetContentsHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cell
(String cellRef, String formattedValue, XSSFComment comment) A cell, with the given formatted value (may be null), and possibly a comment (may be null), was encountered.void
endRow
(int rowNum) A row with the (zero based) row number has endedvoid
headerFooter
(String text, boolean isHeader, String tagName) A header or footer has been encounteredvoid
startRow
(int rowNum) A row with the (zero based) row number has startedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.poi.xssf.eventusermodel.XSSFSheetXMLHandler.SheetContentsHandler
endSheet
-
Constructor Details
-
SheetTextExtractor
protected SheetTextExtractor()
-
-
Method Details
-
startRow
public void startRow(int rowNum) Description copied from interface:XSSFSheetXMLHandler.SheetContentsHandler
A row with the (zero based) row number has started- Specified by:
startRow
in interfaceXSSFSheetXMLHandler.SheetContentsHandler
-
endRow
public void endRow(int rowNum) Description copied from interface:XSSFSheetXMLHandler.SheetContentsHandler
A row with the (zero based) row number has ended- Specified by:
endRow
in interfaceXSSFSheetXMLHandler.SheetContentsHandler
-
cell
Description copied from interface:XSSFSheetXMLHandler.SheetContentsHandler
A cell, with the given formatted value (may be null), and possibly a comment (may be null), was encountered. Sheets that have missing or empty cells may result in sparse calls tocell
. See the code insrc/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java
for an example of how to handle this scenario.- Specified by:
cell
in interfaceXSSFSheetXMLHandler.SheetContentsHandler
-