org.lexgrid.loader.writer.decorator
Class FieldTruncatingWriterDecorator<O>

java.lang.Object
  extended by org.lexgrid.loader.writer.decorator.FieldTruncatingWriterDecorator<O>
All Implemented Interfaces:
org.springframework.batch.item.ItemWriter<O>

public class FieldTruncatingWriterDecorator<O>
extends java.lang.Object
implements org.springframework.batch.item.ItemWriter<O>

The Class FieldTruncatingWriterDecorator.

Author:
Kevin Peterson

Constructor Summary
FieldTruncatingWriterDecorator(org.springframework.batch.item.ItemWriter<O> decorated)
          Instantiates a new field truncating writer decorator.
 
Method Summary
 Truncator getTruncator()
          Gets the truncator.
 void setTruncator(Truncator truncator)
          Sets the truncator.
 void write(java.util.List<? extends O> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldTruncatingWriterDecorator

public FieldTruncatingWriterDecorator(org.springframework.batch.item.ItemWriter<O> decorated)
Instantiates a new field truncating writer decorator.

Parameters:
decorated - the decorated
Method Detail

write

public void write(java.util.List<? extends O> list)
           throws java.lang.Exception
Specified by:
write in interface org.springframework.batch.item.ItemWriter<O>
Throws:
java.lang.Exception

getTruncator

public Truncator getTruncator()
Gets the truncator.

Returns:
the truncator

setTruncator

public void setTruncator(Truncator truncator)
Sets the truncator.

Parameters:
truncator - the new truncator

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.