Example usage for org.springframework.batch.item ItemStream close

List of usage examples for org.springframework.batch.item ItemStream close

Introduction

In this page you can find the example usage for org.springframework.batch.item ItemStream close.

Prototype

void close() throws ItemStreamException;

Source Link

Document

If any resources are needed for the stream to operate they need to be destroyed here.

Usage

From source file:de.langmi.spring.batch.examples.readers.support.CompositeCursorItemReader.java

/**
 * Broadcast the call to close to all registered readers.
 * //from  w w  w.ja v a 2  s  .  co m
 * @throws ItemStreamException
 */
@Override
public void close() throws ItemStreamException {
    for (ItemStream itemStream : cursorItemReaders) {
        itemStream.close();
    }
}

From source file:de.langmi.spring.batch.examples.readers.support.CompositeItemStreamReader.java

/**
 * Broadcast the call to close to all registered readers.
 * /*w w w  . j  av a 2  s . c  o m*/
 * @throws ItemStreamException
 */
@Override
public void close() throws ItemStreamException {
    for (ItemStream itemStream : itemReaderStreams) {
        itemStream.close();
    }
}

From source file:egovframework.rte.bat.core.item.composite.reader.EgovCompositeCursorReader.java

/**
 *  Reader? close  /*from w w  w .  j  ava 2s .c o m*/
 * 
 * @throws ItemStreamException
 */
public void close() throws ItemStreamException {
    for (ItemStream itemStream : itemReaderList) {
        itemStream.close();
    }
}