org.springframework.batch.core.step.item
Class MockItemReader

java.lang.Object
  extended by org.springframework.batch.core.step.item.MockItemReader
All Implemented Interfaces:
ItemReader

public class MockItemReader
extends Object
implements ItemReader


Constructor Summary
MockItemReader()
           
MockItemReader(int returnItemCount)
           
 
Method Summary
 void close()
           
 Object getKey(Object item)
           
 void mark()
           
 Object read()
           
 void reset()
           
 void setFail(boolean fail)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockItemReader

public MockItemReader()

MockItemReader

public MockItemReader(int returnItemCount)
Method Detail

setFail

public void setFail(boolean fail)

close

public void close()

read

public Object read()
Specified by:
read in interface ItemReader

getKey

public Object getKey(Object item)

mark

public void mark()
          throws MarkFailedException
Specified by:
mark in interface ItemReader
Throws:
MarkFailedException

reset

public void reset()
           throws ResetFailedException
Specified by:
reset in interface ItemReader
Throws:
ResetFailedException


Copyright © 2008 SpringSource. All Rights Reserved.