@Named @Dependent public class BeanIOItemReader extends BeanIOItemReaderWriterBase implements javax.batch.api.chunk.ItemReader
javax.batch.api.chunk.ItemReader
based on BeanIO. This reader class handles all
data formats that are supported by BeanIO, e.g., fixed length file, CSV file, XML, etc. It supports restart,
ranged reading, custom error handler, and dynamic BeanIO mapping properties. BeanIOItemReader
configurations are specified as reader properties in job xml, and BeanIO mapping xml file.BeanIOItemReaderWriterBase
,
BeanIOItemWriter
Modifier and Type | Field and Description |
---|---|
protected int |
currentPosition |
protected int |
end
A positive integer indicating the end position in the input resource.
|
protected Class |
errorHandler
A class implementing
BeanReaderErrorHandler for handling exceptions thrown by a
BeanReader . |
protected String |
locale
The locale name for this
BeanIOItemReader |
protected int |
start
A positive integer indicating the start position in the input resource.
|
charset, jobContext, mappingProperties, streamFactoryLookup, streamMapping, streamName
NEW_LINE, resource, skipBeanValidation
Constructor and Description |
---|
BeanIOItemReader() |
Modifier and Type | Method and Description |
---|---|
Serializable |
checkpointInfo() |
void |
close() |
void |
open(Serializable checkpoint) |
Object |
readItem() |
getInputStream, getOutputStream, getValidator, validate
@Inject protected int start
@Inject protected int end
Integer.MAX_VALUE
.@Inject protected Class errorHandler
BeanReaderErrorHandler
for handling exceptions thrown by a
BeanReader
.@Inject protected String locale
BeanIOItemReader
protected int currentPosition
public void open(Serializable checkpoint) throws Exception
open
in interface javax.batch.api.chunk.ItemReader
Exception
public Object readItem() throws Exception
readItem
in interface javax.batch.api.chunk.ItemReader
Exception
public Serializable checkpointInfo() throws Exception
checkpointInfo
in interface javax.batch.api.chunk.ItemReader
Exception
Copyright © 2018 JBoss by Red Hat. All rights reserved.