@Internal public class XSSFBSheetHandler extends XSSFBParser
| Modifier and Type | Class and Description |
|---|---|
static interface |
XSSFBSheetHandler.SheetContentsHandler
You need to implement this to handle the results
of the sheet parsing.
|
static interface |
XSSFBSheetHandler.XSSFBSheetContentsHandler
Receives streaming callbacks while
XSSFBSheetHandler parses an XLSB sheet. |
| Constructor and Description |
|---|
XSSFBSheetHandler(InputStream is,
XSSFBStylesTable styles,
XSSFBCommentsTable comments,
SharedStrings strings,
XSSFBSheetHandler.XSSFBSheetContentsHandler sheetContentsHandler,
boolean formulasNotResults)
Creates a handler that forwards native POI cell types to the supplied
XSSFBSheetHandler.XSSFBSheetContentsHandler. |
XSSFBSheetHandler(InputStream is,
XSSFBStylesTable styles,
XSSFBCommentsTable comments,
SharedStrings strings,
XSSFSheetXMLHandler.SheetContentsHandler sheetContentsHandler,
DataFormatter dataFormatter,
boolean formulasNotResults)
Creates a handler that converts numeric and date cells to formatted strings via
DataFormatter. |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRecord(int id,
byte[] data)
Dispatches a parsed XLSB record to the appropriate specialised handler.
|
getMaxRecordLength, parse, setMaxRecordLengthpublic XSSFBSheetHandler(InputStream is, XSSFBStylesTable styles, XSSFBCommentsTable comments, SharedStrings strings, XSSFBSheetHandler.XSSFBSheetContentsHandler sheetContentsHandler, boolean formulasNotResults)
XSSFBSheetHandler.XSSFBSheetContentsHandler.
Select this overload when the consumer expects the raw cell representation rather than formatted strings.
is - XLSB worksheet stream to parsestyles - table providing cell style and number format metadatacomments - optional comments table, may be nullstrings - shared strings table used by the sheetsheetContentsHandler - callback receiving native cell eventspublic XSSFBSheetHandler(InputStream is, XSSFBStylesTable styles, XSSFBCommentsTable comments, SharedStrings strings, XSSFSheetXMLHandler.SheetContentsHandler sheetContentsHandler, DataFormatter dataFormatter, boolean formulasNotResults)
DataFormatter.
Select this overload when the consumer expects formatted string values rather than raw cell representations.
is - XLSB worksheet stream to parsestyles - table providing cell style and number format metadatacomments - optional comments table, may be nullstrings - shared strings table used by the sheetsheetContentsHandler - callback receiving formatted string valuesdataFormatter - formatter applied to numeric and date cellsXSSFBSheetHandler(InputStream, XSSFBStylesTable, XSSFBCommentsTable, SharedStrings,
XSSFBSheetContentsHandler, boolean)public void handleRecord(int id,
byte[] data)
throws XSSFBParseException
handleRecord in class XSSFBParserid - numeric record identifier supplied by XSSFBParserdata - raw record payloadXSSFBParseException - if the record cannot be processed according to the XLSB specXSSFBRecordType