
@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, startbeanType, currentRowNum, header, sheet, sheetName, workbookcustomDataTypeModules, customDeserializers, customSerializers, deserializationFeatures, jsonFactory, jsonFactoryFeatures, jsonFactoryLookup, mapperFeatures, objectMapper, serializationFeaturesNEW_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, opengetCellStringValuesinitJsonFactory, initJsonFactoryAndObjectMapper, registerModulegetInputStream, getOutputStream, getValidator, validateprotected 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.ItemReaderreadItem in class ExcelUserModelItemReaderExceptionpublic Serializable checkpointInfo() throws Exception
checkpointInfo in interface javax.batch.api.chunk.ItemReadercheckpointInfo in class ExcelUserModelItemReaderExceptionpublic void close()
throws Exception
close in interface javax.batch.api.chunk.ItemReaderclose in class ExcelUserModelItemReaderExceptionprotected void initWorkbookAndSheet(int startRowNumber)
throws Exception
initWorkbookAndSheet in class ExcelUserModelItemReaderExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.