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 Modifier Constructor Description protectedSheetTextExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcell(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 started-
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.xssf.eventusermodel.XSSFSheetXMLHandler.SheetContentsHandler
endSheet
-
-
-
-
Method Detail
-
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
public void cell(String cellRef, String formattedValue, XSSFComment comment)
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 inpoi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.javafor an example of how to handle this scenario.- Specified by:
cellin interfaceXSSFSheetXMLHandler.SheetContentsHandler
-
headerFooter
public void headerFooter(String text, boolean isHeader, String tagName)
Description copied from interface:XSSFSheetXMLHandler.SheetContentsHandlerA header or footer has been encountered- Specified by:
headerFooterin interfaceXSSFSheetXMLHandler.SheetContentsHandler
-
-