org.lexgrid.loader.reader
Class SkippingItemReader<I>

java.lang.Object
  extended by org.lexgrid.loader.reader.SkippingItemReader<I>
All Implemented Interfaces:
org.springframework.batch.item.ItemReader<I>

public class SkippingItemReader<I>
extends java.lang.Object
implements org.springframework.batch.item.ItemReader<I>

The Class SkippingItemReader.

Author:
Kevin Peterson

Constructor Summary
SkippingItemReader()
           
 
Method Summary
 org.springframework.batch.item.ItemReader<I> getDelegate()
          Gets the delegate.
 SkipPolicy<I> getSkipPolicy()
          Gets the skip policy.
 I read()
           
 void setDelegate(org.springframework.batch.item.ItemReader<I> delegate)
          Sets the delegate.
 void setSkipPolicy(SkipPolicy<I> skipPolicy)
          Sets the skip policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkippingItemReader

public SkippingItemReader()
Method Detail

read

public I read()
       throws java.lang.Exception,
              org.springframework.batch.item.UnexpectedInputException,
              org.springframework.batch.item.ParseException
Specified by:
read in interface org.springframework.batch.item.ItemReader<I>
Throws:
java.lang.Exception
org.springframework.batch.item.UnexpectedInputException
org.springframework.batch.item.ParseException

getDelegate

public org.springframework.batch.item.ItemReader<I> getDelegate()
Gets the delegate.

Returns:
the delegate

setDelegate

public void setDelegate(org.springframework.batch.item.ItemReader<I> delegate)
Sets the delegate.

Parameters:
delegate - the new delegate

getSkipPolicy

public SkipPolicy<I> getSkipPolicy()
Gets the skip policy.

Returns:
the skip policy

setSkipPolicy

public void setSkipPolicy(SkipPolicy<I> skipPolicy)
Sets the skip policy.

Parameters:
skipPolicy - the new skip policy

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.