public abstract class AbstractItemReader extends java.lang.Object implements ItemReader
Constructor and Description |
---|
AbstractItemReader() |
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
checkpointInfo()
Override this method if the ItemReader supports
checkpoints.
|
void |
close()
Override this method if the ItemReader requires
any close time processing.
|
void |
open(java.io.Serializable checkpoint)
Override this method if the ItemReader requires
any open time processing.
|
abstract java.lang.Object |
readItem()
Implement read logic for the ItemReader in this
method.
|
public void open(java.io.Serializable checkpoint) throws java.lang.Exception
open
in interface ItemReader
checkpoint
- last checkpoint for this ItemReader - may be null.java.lang.Exception
- (or subclass) if an error occurs.public void close() throws java.lang.Exception
close
in interface ItemReader
java.lang.Exception
- (or subclass) if an error occurs.public abstract java.lang.Object readItem() throws java.lang.Exception
readItem
in interface ItemReader
java.lang.Exception
- (or subclass) if an error occurs.public java.io.Serializable checkpointInfo() throws java.lang.Exception
checkpointInfo
in interface ItemReader
java.lang.Exception
- (or subclass) if an error occurs.