T - the typepublic class JxlItemReader<T> extends AbstractExcelItemReader<T>
ItemReader implementation which uses the JExcelApi to read an Excel
file. It will read the file sheet for sheet and row for row. It is based on
the FlatFileItemReaderlogger| Constructor and Description |
|---|
JxlItemReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected int |
getNumberOfSheets()
The number of sheets in the underlying workbook.
|
protected Sheet |
getSheet(int sheet) |
protected void |
openExcelFile(java.io.InputStream inputStream) |
afterPropertiesSet, doOpen, doRead, jumpToItem, read, setEndAfterBlankLines, setLinesToSkip, setResource, setRowMapper, setRowSetFactory, setSkippedRowsCallback, setStrictclose, getCurrentItemCount, isSaveState, open, setCurrentItemCount, setMaxItemCount, setSaveState, updategetExecutionContextKey, setExecutionContextName, setNameprotected void openExcelFile(java.io.InputStream inputStream)
throws java.lang.Exception
openExcelFile in class AbstractExcelItemReader<T>inputStream - Resource pointing to the Excel file to readjava.lang.Exception - when the Excel sheet cannot be accessedprotected void doClose()
throws java.lang.Exception
doClose in class AbstractExcelItemReader<T>java.lang.Exceptionprotected Sheet getSheet(int sheet)
getSheet in class AbstractExcelItemReader<T>sheet - the sheet indexnull when no sheet available.protected int getNumberOfSheets()
AbstractExcelItemReadergetNumberOfSheets in class AbstractExcelItemReader<T>