example
Class ExampleItemReader

java.lang.Object
  extended by org.springframework.batch.item.support.AbstractItemReader
      extended by example.ExampleItemReader
All Implemented Interfaces:
ItemReader

public class ExampleItemReader
extends AbstractItemReader

ItemReader with hard-coded input data.


Constructor Summary
ExampleItemReader()
           
 
Method Summary
 Object read()
          Reads next record from input
 
Methods inherited from class org.springframework.batch.item.support.AbstractItemReader
mark, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleItemReader

public ExampleItemReader()
Method Detail

read

public Object read()
            throws Exception
Reads next record from input

Throws:
Exception - if an underlying resource is unavailable.


Copyright © 2009 SpringSource. All Rights Reserved.