public class ExcelWorkSheetRowCallbackHandler extends java.lang.Object implements XSSFSheetXMLHandler.SheetContentsHandler
Excel Worksheet Handler for XML SAX parsing (.xlsx document model) http://poi.apache.org/spreadsheet/how-to.html#xssf_sax_api
Inspired by Jeevanandam M. https://github.com/jeevatkm/excelReader
Usage: Provide a ExcelRowContentCallback
callback that will be provided
a map representing a row of data from the file. The keys will be the column headers and values
the row data. Your callback class encapsulates any business logic for processing the string data
into dates, numbers, etc to allow full customization of the parsing and processing logic.
Constructor and Description |
---|
ExcelWorkSheetRowCallbackHandler(ExcelRowContentCallback rowCallbackHandler) |
Modifier and Type | Method and Description |
---|---|
void |
cell(java.lang.String cellReference,
java.lang.String formattedValue) |
void |
endRow() |
void |
headerFooter(java.lang.String text,
boolean isHeader,
java.lang.String tagName) |
void |
startRow(int rowNum) |
public ExcelWorkSheetRowCallbackHandler(ExcelRowContentCallback rowCallbackHandler)
public void startRow(int rowNum)
startRow
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.startRow(int)
public void cell(java.lang.String cellReference, java.lang.String formattedValue)
cell
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.cell(java.lang.String,
java.lang.String)
public void endRow()
endRow
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.endRow()
public void headerFooter(java.lang.String text, boolean isHeader, java.lang.String tagName)
headerFooter
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.headerFooter(java.lang.String,
boolean, java.lang.String)
The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons Attribution-Share Alike 3.0 Unported License. Libraries and code snippets on myjeeva.com has license information.