Top Description Methods
jakarta.batch.api.chunk

public Interface ItemProcessor


ItemProcessor is used in chunk processing to operate on an input item and produce an output item.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

output item to write.
processItem
(Object
specifies the input item to process.
item
)

The processItem method is part of a chunk step.

Method Detail

processItemback to summary
public Object processItem(Object item) throws Exception

The processItem method is part of a chunk step. It accepts an input item from an item reader and returns an item that gets passed onto the item writer. Returning null indicates that the item should not be continued to be processed. This effectively enables processItem to filter out unwanted input items.

Parameters
item:Object

specifies the input item to process.

Returns:Object

output item to write.

Exceptions
Exception:
thrown for any errors.