org.springframework.batch.item.excel
Interface RowMapper<T>

Type Parameters:
T - the type
All Known Implementing Classes:
BeanWrapperRowMapper, PassThroughRowMapper

public interface RowMapper<T>

Map rows from an excel sheet to an object.

Since:
0.5.0
Author:
Marten Deinum

Method Summary
 T mapRow(RowSet rs)
          Implementations must implement this method to map the provided row to the parameter type T.
 

Method Detail

mapRow

T mapRow(RowSet rs)
         throws Exception
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.

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.