org.springframework.yarn.batch.item
Class PassThroughLineDataMapper

java.lang.Object
  extended by org.springframework.yarn.batch.item.PassThroughLineDataMapper
All Implemented Interfaces:
LineDataMapper<String>

public class PassThroughLineDataMapper
extends Object
implements LineDataMapper<String>

Simple LineDataMapper implementation which just passes data as it is.

Author:
Janne Valkealahti

Constructor Summary
PassThroughLineDataMapper()
           
 
Method Summary
 String mapLine(String line)
          Implementations must implement this method to map the provided line to the parameter type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughLineDataMapper

public PassThroughLineDataMapper()
Method Detail

mapLine

public String mapLine(String line)
               throws Exception
Description copied from interface: LineDataMapper
Implementations must implement this method to map the provided line to the parameter type T.

Specified by:
mapLine in interface LineDataMapper<String>
Parameters:
line - to be mapped
Returns:
mapped object of type T
Throws:
Exception - if error occured while parsing.