Interface XSSFBSheetHandler.XSSFBSheetContentsHandler
- Enclosing class:
- XSSFBSheetHandler
XSSFBSheetHandler parses an XLSB sheet.- Since:
- 5.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanCell(String cellReference, boolean value, Comment comment) Handles a boolean cell.voiddoubleCell(String cellReference, double value, Comment comment, ExcelNumberFormat nf) Handles a numeric cell while providing the correspondingExcelNumberFormat.voidendRow(int rowNum) Signals that a row has ended after all of its cells and comments were processed.voidendSheet()Signals that the sheet has been completely processed.voiderrorCell(String cellReference, FormulaError fe, Comment comment) Handles a cell that evaluates to an error.voidheaderFooter(String text, boolean isHeader, String tagName) Receives header or footer text encountered in the sheet.voidstartRow(int rowNum) Signals that a row has started before any of its cells are delivered.voidstringCell(String cellReference, String value, Comment comment) Handles a cell that resolves to a string value, possibly representing a comment-only cell.
-
Method Details
-
startRow
void startRow(int rowNum) Signals that a row has started before any of its cells are delivered.- Parameters:
rowNum- zero-based row index- See Also:
-
endRow
void endRow(int rowNum) Signals that a row has ended after all of its cells and comments were processed.- Parameters:
rowNum- zero-based row index- See Also:
-
stringCell
Handles a cell that resolves to a string value, possibly representing a comment-only cell.- Parameters:
cellReference- A1-style cell addressvalue- string contents, ornullif only a comment is presentcomment- associated comment, ornullif absentSheets that have missing or empty cells may result in sparse calls to
cell. See the code inpoi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.javafor an example of how to handle this scenario.- See Also:
-
doubleCell
Handles a numeric cell while providing the correspondingExcelNumberFormat.- Parameters:
cellReference- A1-style cell addressvalue- numeric value extracted from the sheetcomment- associated comment, ornullif absentnf- number format describing how the value should be renderedSheets that have missing or empty cells may result in sparse calls to
cell. See the code inpoi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.javafor an example of how to handle this scenario.- See Also:
-
booleanCell
Handles a boolean cell.- Parameters:
cellReference- A1-style cell addressvalue- boolean value stored in the cellcomment- associated comment, ornullif absentSheets that have missing or empty cells may result in sparse calls to
cell. See the code inpoi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.javafor an example of how to handle this scenario.- See Also:
-
errorCell
Handles a cell that evaluates to an error.- Parameters:
cellReference- A1-style cell addressfe- mappedFormulaError, ornullwhen the error code is unknowncomment- associated comment, ornullif absentSheets that have missing or empty cells may result in sparse calls to
cell. See the code inpoi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.javafor an example of how to handle this scenario.- See Also:
-
endSheet
void endSheet()Signals that the sheet has been completely processed.- See Also:
-