@Named @Dependent public class ExcelEventItemReader extends ExcelUserModelItemReader implements javax.batch.api.chunk.ItemReader
javax.batch.api.chunk.ItemReader
for reading binary Excel files (.xls) based on
Apache POI event model API. Compared to ExcelUserModelItemReader
, this reader implementation has smaller
memory footprint and is suitable for reading large binary excel files.ExcelUserModelItemReader
,
ExcelStreamingItemReader
,
ExcelItemReaderWriterBase
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_WORKSHEET_ROWS
Maximum worksheet row numbers for Excel 2003: 65,536 (2 ** 16)
http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP005199291.aspx
|
protected int |
queueCapacity
the capacity of the queue used by
org.apache.poi.hssf.eventusermodel.HSSFListener to hold pre-fetched
data rows. |
end, formulaEvaluator, headerMapping, headerRow, inputStream, minColumnCount, rowIterator, sheetIndex, start
beanType, currentRowNum, header, sheet, sheetName, workbook
customDataTypeModules, customDeserializers, customSerializers, deserializationFeatures, jsonFactory, jsonFactoryFeatures, jsonFactoryLookup, mapperFeatures, objectMapper, serializationFeatures
NEW_LINE, resource, skipBeanValidation
Constructor and Description |
---|
ExcelEventItemReader() |
Modifier and Type | Method and Description |
---|---|
Serializable |
checkpointInfo() |
void |
close() |
protected void |
initWorkbookAndSheet(int startRowNumber) |
Object |
readItem() |
getCellValue, open
getCellStringValues
initJsonFactory, initJsonFactoryAndObjectMapper, registerModule
getInputStream, getOutputStream, getValidator, validate
protected static final int MAX_WORKSHEET_ROWS
@Inject protected int queueCapacity
org.apache.poi.hssf.eventusermodel.HSSFListener
to hold pre-fetched
data rows. Optional property and defaults to MAX_WORKSHEET_ROWS
(65536).public Object readItem() throws Exception
readItem
in interface javax.batch.api.chunk.ItemReader
readItem
in class ExcelUserModelItemReader
Exception
public Serializable checkpointInfo() throws Exception
checkpointInfo
in interface javax.batch.api.chunk.ItemReader
checkpointInfo
in class ExcelUserModelItemReader
Exception
public void close() throws Exception
close
in interface javax.batch.api.chunk.ItemReader
close
in class ExcelUserModelItemReader
Exception
protected void initWorkbookAndSheet(int startRowNumber) throws Exception
initWorkbookAndSheet
in class ExcelUserModelItemReader
Exception
Copyright © 2018 JBoss by Red Hat. All rights reserved.