|
Generic Excel File (XLSX) Reader | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.myjeeva.poi.ExcelWorkSheetHandler<T>
public class ExcelWorkSheetHandler<T>
Generic Excel WorkSheet handler
Constructor Summary | |
---|---|
ExcelWorkSheetHandler(Class<T> type,
Map<String,String> cellMapping)
Constructor For Example: Reading rows (zero based) starting from Zero ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping); |
|
ExcelWorkSheetHandler(Class<T> type,
Map<String,String> cellMapping,
int skipRows)
Constructor For Example: Reading rows (zero based) starting from Row 11 ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping, 10); |
Method Summary | |
---|---|
void |
cell(String cellReference,
String formattedValue)
|
void |
endRow()
|
List<T> |
getValueList()
Returns Value List (List<T>) read from Excel Workbook, Row represents one Object in a List. |
void |
headerFooter(String text,
boolean isHeader,
String tagName)
Currently not considered for implementation |
boolean |
isVerifiyHeader()
Returns Excel Header check state, default it is enabled |
void |
setVerifiyHeader(boolean verifiyHeader)
To set the Excel Header check state, default it is enabled |
void |
startRow(int rowNum)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExcelWorkSheetHandler(Class<T> type, Map<String,String> cellMapping)
ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping);
type
- a Class
objectcellMapping
- a Map
objectpublic ExcelWorkSheetHandler(Class<T> type, Map<String,String> cellMapping, int skipRows)
ExcelWorkSheetHandler<PersonVO> workSheetHandler = new ExcelWorkSheetHandler<PersonVO>(PersonVO.class, cellMapping, 10);
type
- a Class
objectcellMapping
- a Map
objectskipRows
- a int
object - Number rows to skip (zero based).
default is 0Method Detail |
---|
public List<T> getValueList()
List<PersonVO> persons = workSheetHandler.getValueList();
public boolean isVerifiyHeader()
public void setVerifiyHeader(boolean verifiyHeader)
verifiyHeader
- a booleanpublic void startRow(int rowNum)
startRow
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.startRow(int)
public void cell(String cellReference, 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(String text, boolean isHeader, String tagName)
headerFooter
in interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFSheetXMLHandler.SheetContentsHandler.headerFooter(java.lang.String,
boolean, java.lang.String)
|
Generic Excel File (XLSX) Reader | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |