Package org.springframework.batch.item.support

# Class ListItemWriter<T>

java.lang.Object
org.springframework.batch.item.support.ListItemWriter<T>

All Implemented Interfaces:
  `ItemWriter<T>`

public class ListItemWriter<T> extends Object implements ItemWriter<T>

Author:
  mminella

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ListItemWriter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<? extends T>`
  `getWrittenItems()`
  `void`
  `write(List<? extends T> items)`
  Process the supplied data element.

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

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

- ## Constructor Details

  - ### ListItemWriter

    public ListItemWriter()

- ## Method Details

  - ### write

    public void write(List<? extends T> items) throws Exception
    Description copied from interface: `ItemWriter`
    Process the supplied data element. Will not be called with any null items in normal operation.
    Specified by:
      `write` in interface `ItemWriter<T>`
    Parameters:
      `items` - items to be written
    Throws:
      `Exception` - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.

  - ### getWrittenItems

    public List<? extends T> getWrittenItems()