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 TypeMethodDescriptionvoidcell(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.voidendRow(int rowNum) A row with the (zero based) row number has endedvoidheaderFooter(String text, boolean isHeader, String tagName) A header or footer has been encounteredvoidstartRow(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, waitMethods 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.SheetContentsHandlerA row with the (zero based) row number has started- Specified by:
startRowin interfaceXSSFSheetXMLHandler.SheetContentsHandler
-
endRow
public void endRow(int rowNum) Description copied from interface:XSSFSheetXMLHandler.SheetContentsHandlerA row with the (zero based) row number has ended- Specified by:
endRowin interfaceXSSFSheetXMLHandler.SheetContentsHandler
-
cell
Description copied from interface:XSSFSheetXMLHandler.SheetContentsHandlerA 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.javafor an example of how to handle this scenario.- Specified by:
cellin interfaceXSSFSheetXMLHandler.SheetContentsHandler
-