org.springframework.batch.item.excel.jxl
Class JxlItemReader<T>

java.lang.Object
  extended by org.springframework.batch.item.ItemStreamSupport
      extended by org.springframework.batch.item.support.AbstractItemStreamItemReader<T>
          extended by org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader<T>
              extended by org.springframework.batch.item.excel.AbstractExcelItemReader<T>
                  extended by org.springframework.batch.item.excel.jxl.JxlItemReader<T>
Type Parameters:
T - the type
All Implemented Interfaces:
org.springframework.batch.item.file.ResourceAwareItemReaderItemStream<T>, org.springframework.batch.item.ItemReader<T>, org.springframework.batch.item.ItemStream, org.springframework.batch.item.ItemStreamReader<T>, org.springframework.beans.factory.InitializingBean

Deprecated. since JExcelAPI is an abandoned project (no release since 2009, with serious bugs remaining)

@Deprecated
public 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 FlatFileItemReader

Since:
0.5.0
Author:
Marten Deinum

Field Summary
 
Fields inherited from class org.springframework.batch.item.excel.AbstractExcelItemReader
logger
 
Constructor Summary
JxlItemReader()
          Deprecated.  
 
Method Summary
protected  void doClose()
          Deprecated.  
protected  int getNumberOfSheets()
          Deprecated. The number of sheets in the underlying workbook.
protected  Sheet getSheet(int sheet)
          Deprecated.  
protected  void openExcelFile(org.springframework.core.io.Resource resource)
          Deprecated.  
 
Methods inherited from class org.springframework.batch.item.excel.AbstractExcelItemReader
afterPropertiesSet, doOpen, doRead, jumpToItem, read, setEndAfterBlankLines, setLinesToSkip, setResource, setRowMapper, setRowSetFactory, setSkippedRowsCallback, setStrict
 
Methods inherited from class org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader
close, getCurrentItemCount, isSaveState, open, setCurrentItemCount, setMaxItemCount, setSaveState, update
 
Methods inherited from class org.springframework.batch.item.ItemStreamSupport
getExecutionContextKey, setExecutionContextName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.batch.item.ItemStream
close, open, update
 

Constructor Detail

JxlItemReader

public JxlItemReader()
Deprecated. 
Method Detail

openExcelFile

protected void openExcelFile(org.springframework.core.io.Resource resource)
                      throws Exception
Deprecated. 
Specified by:
openExcelFile in class AbstractExcelItemReader<T>
Parameters:
resource - Resource pointing to the Excel file to read
Throws:
Exception - when the Excel sheet cannot be accessed

doClose

protected void doClose()
                throws Exception
Deprecated. 
Overrides:
doClose in class AbstractExcelItemReader<T>
Throws:
Exception

getSheet

protected Sheet getSheet(int sheet)
Deprecated. 
Specified by:
getSheet in class AbstractExcelItemReader<T>
Parameters:
sheet - the sheet index
Returns:
the sheet or null when no sheet available.

getNumberOfSheets

protected int getNumberOfSheets()
Deprecated. 
Description copied from class: AbstractExcelItemReader
The number of sheets in the underlying workbook.

Specified by:
getNumberOfSheets in class AbstractExcelItemReader<T>
Returns:
the number of sheets.


Copyright © 2017. All rights reserved.