public abstract class AbstractItemReader extends Object implements ItemReader
Constructor and Description |
---|
AbstractItemReader() |
Modifier and Type | Method and Description |
---|---|
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(Serializable checkpoint)
Override this method if the ItemReader requires
any open time processing.
|
abstract Object |
readItem()
Implement read logic for the ItemReader in this
method.
|
public void open(Serializable checkpoint) throws Exception
open
in interface ItemReader
checkpoint
- last checkpoint for this ItemReader - may be null.Exception
- (or subclass) if an error occurs.public void close() throws Exception
close
in interface ItemReader
Exception
- (or subclass) if an error occurs.public abstract Object readItem() throws Exception
readItem
in interface ItemReader
Exception
- (or subclass) if an error occurs.public Serializable checkpointInfo() throws Exception
checkpointInfo
in interface ItemReader
Exception
- (or subclass) if an error occurs.Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.