@Named @Dependent public class ExcelStreamingItemReader extends ExcelUserModelItemReader implements javax.batch.api.chunk.ItemReader
javax.batch.api.chunk.ItemReader
for reading OOXML Excel files, based on Apache POI
XSSF streaming reader API, and StAX.ExcelStreamingItemWriter
,
ExcelUserModelItemReader
,
ExcelItemReaderWriterBase
Modifier and Type | Field and Description |
---|---|
protected Boolean |
r1c1
If set to true, the target sheet uses R1C1-style cell coordinates; if set to false, the target sheet uses the
more common A1-style cell coordinates; defaults to null (not set).
|
protected org.apache.poi.xssf.model.SharedStringsTable |
sharedStringsTable |
protected InputStream |
sheetInputStream |
protected XMLStreamReader |
sheetStreamReader |
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 |
---|
ExcelStreamingItemReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
initWorkbookAndSheet(int startRowNumber) |
Object |
readItem() |
checkpointInfo, getCellValue, open
getCellStringValues
initJsonFactory, initJsonFactoryAndObjectMapper, registerModule
getInputStream, getOutputStream, getValidator, validate
protected Boolean r1c1
protected InputStream sheetInputStream
protected XMLStreamReader sheetStreamReader
protected org.apache.poi.xssf.model.SharedStringsTable sharedStringsTable
public Object readItem() throws Exception
readItem
in interface javax.batch.api.chunk.ItemReader
readItem
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.