org.springframework.batch.jsr.item

## Class ItemProcessorAdapter<I,O>

- java.lang.Object
- - org.springframework.batch.jsr.item.ItemProcessorAdapter<I,O>

- All Implemented Interfaces:
    ItemProcessor<I,O>

      public class ItemProcessorAdapter<I,O>
      extends java.lang.Object
      implements ItemProcessor<I,O>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ItemProcessorAdapter(javax.batch.api.chunk.ItemProcessor processor)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `O` | `process(I item)` Process the provided item, returning a potentially modified or new item for continued processing.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ItemProcessorAdapter

          public ItemProcessorAdapter(javax.batch.api.chunk.ItemProcessor processor)

  - ### Method Detail

    - #### process

          @Nullable
          public O process(I item)
                              throws java.lang.Exception

      Description copied from interface: `ItemProcessor`
      Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.
      Specified by:
        `process` in interface `ItemProcessor<I,O>`
      Parameters:
        `item` - to be processed
      Returns:
        potentially modified or new item for continued processing, `null` if processing of the provided item should not continue.
      Throws:
        `java.lang.Exception` - thrown if exception occurs during processing.