Package org.apache.batchee.beanio
Class BeanIOReader
- java.lang.Object
-
- org.apache.batchee.extras.transaction.CountedReader
-
- org.apache.batchee.beanio.BeanIOReader
-
- All Implemented Interfaces:
javax.batch.api.chunk.ItemReader
public class BeanIOReader extends CountedReader implements javax.batch.api.chunk.ItemReader
-
-
Field Summary
Fields Modifier and Type Field Description protected String
configuration
protected String
errorHandlerStr
protected String
filePath
protected String
localeStr
protected int
skippedHeaderLines
protected String
streamName
-
Fields inherited from class org.apache.batchee.extras.transaction.CountedReader
items
-
-
Constructor Summary
Constructors Constructor Description BeanIOReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected Object
doRead()
void
open(Serializable checkpoint)
-
Methods inherited from class org.apache.batchee.extras.transaction.CountedReader
checkpointInfo, incrementCount, incrementReaderCount, readItem
-
-
-
-
Field Detail
-
filePath
@Inject protected String filePath
-
skippedHeaderLines
@Inject protected int skippedHeaderLines
-
streamName
@Inject protected String streamName
-
configuration
@Inject protected String configuration
-
localeStr
@Inject protected String localeStr
-
errorHandlerStr
@Inject protected String errorHandlerStr
-
-
Method Detail
-
open
public void open(Serializable checkpoint) throws Exception
- Specified by:
open
in interfacejavax.batch.api.chunk.ItemReader
- Overrides:
open
in classCountedReader
- Throws:
Exception
-
close
public void close() throws Exception
- Specified by:
close
in interfacejavax.batch.api.chunk.ItemReader
- Throws:
Exception
-
doRead
protected Object doRead() throws Exception
- Specified by:
doRead
in classCountedReader
- Throws:
Exception
-
-