org.springframework.batch.item.excel.mapping
Class PassThroughRowMapper

java.lang.Object
  extended by org.springframework.batch.item.excel.mapping.PassThroughRowMapper
All Implemented Interfaces:
RowMapper<String[]>

public class PassThroughRowMapper
extends Object
implements RowMapper<String[]>

Pass through RowMapper useful for passing the orginal String[] back directly rather than a mapped object.

Since:
0.5.0
Author:
Marten Deinum

Constructor Summary
PassThroughRowMapper()
           
 
Method Summary
 String[] mapRow(RowSet rs)
          Implementations must implement this method to map the provided row 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

PassThroughRowMapper

public PassThroughRowMapper()
Method Detail

mapRow

public String[] mapRow(RowSet rs)
                throws Exception
Description copied from interface: RowMapper
Implementations must implement this method to map the provided row to the parameter type T. The row number represents the number of rows into a Sheet the current line resides.

Specified by:
mapRow in interface RowMapper<String[]>
Parameters:
rs - the RowSet used for mapping.
Returns:
mapped object of type T
Throws:
Exception - if error occured while parsing.


Copyright © 2017. All rights reserved.