public static interface XSSFBSheetHandler.XSSFBSheetContentsHandler
XSSFBSheetHandler parses an XLSB sheet.XSSFBSheetHandler| Modifier and Type | Method and Description |
|---|---|
void |
booleanCell(String cellReference,
boolean value,
XSSFComment comment)
Handles a boolean cell.
|
void |
doubleCell(String cellReference,
double value,
XSSFComment comment,
ExcelNumberFormat nf)
Handles a numeric cell while providing the corresponding
ExcelNumberFormat. |
void |
endRow(int rowNum)
Signals that a row has ended after all of its cells and comments were processed.
|
void |
endSheet()
Signals that the sheet has been completely processed.
|
void |
errorCell(String cellReference,
FormulaError fe,
XSSFComment comment)
Handles a cell that evaluates to an error.
|
void |
headerFooter(String text,
boolean isHeader,
String tagName)
Receives header or footer text encountered in the sheet.
|
void |
startRow(int rowNum)
Signals that a row has started before any of its cells are delivered.
|
void |
stringCell(String cellReference,
String value,
XSSFComment comment)
Handles a cell that resolves to a string value, possibly representing a comment-only cell.
|
void startRow(int rowNum)
rowNum - zero-based row indexendRow(int)void endRow(int rowNum)
rowNum - zero-based row indexstartRow(int)void stringCell(String cellReference, String value, XSSFComment comment)
cellReference - A1-style cell addressvalue - string contents, or null if only a comment is presentcomment - associated comment, or null if absent
Sheets that have missing or empty cells may result in sparse calls to cell
. See the code in
poi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java for an
example of how to handle this scenario.
doubleCell(String, double, XSSFComment, ExcelNumberFormat)void doubleCell(String cellReference, double value, XSSFComment comment, ExcelNumberFormat nf)
ExcelNumberFormat.cellReference - A1-style cell addressvalue - numeric value extracted from the sheetcomment - associated comment, or null if absentnf - number format describing how the value should be rendered
Sheets that have missing or empty cells may result in sparse calls to cell
. See the code in
poi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java for an
example of how to handle this scenario.
stringCell(String, String, XSSFComment)void booleanCell(String cellReference, boolean value, XSSFComment comment)
cellReference - A1-style cell addressvalue - boolean value stored in the cellcomment - associated comment, or null if absent
Sheets that have missing or empty cells may result in sparse calls to cell
. See the code in
poi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java for an
example of how to handle this scenario.
stringCell(String, String, XSSFComment)void errorCell(String cellReference, FormulaError fe, XSSFComment comment)
cellReference - A1-style cell addressfe - mapped FormulaError, or null when the error code is unknowncomment - associated comment, or null if absent
Sheets that have missing or empty cells may result in sparse calls to cell
. See the code in
poi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java for an
example of how to handle this scenario.
FormulaErrorvoid headerFooter(String text, boolean isHeader, String tagName)
text - resolved header or footer textisHeader - true when the text belongs to a header, otherwise falsetagName - POI-internal tag representing the header or footer sectionendSheet()void endSheet()
startRow(int)