org.gageot.excel.core
Interface RowMapper

All Known Implementing Classes:
ColumnMapRowMapper

public interface RowMapper

An interface used by ExcelTemplate for mapping rows. Implementations of this interface perform the actual work of mapping rows, but don't need to worry about exception handling. IOExceptions will be caught and handled correctly by the ExcelTemplate class.

Author:
David Gageot
See Also:
ExcelTemplate, SheetExtractor

Method Summary
 java.lang.Object mapRow(org.apache.poi.hssf.usermodel.HSSFRow row, int rowNum)
          Implementations must implement this method to map each row of data in the HSSFSheet.
 

Method Detail

mapRow

java.lang.Object mapRow(org.apache.poi.hssf.usermodel.HSSFRow row,
                        int rowNum)
                        throws java.io.IOException
Implementations must implement this method to map each row of data in the HSSFSheet. This method should extract the values of the current row.

Parameters:
row - the HSSFRow to map
rowNum - the number of the current row
Throws:
java.io.IOException - if a IOException is encountered getting column values (that is, there's no need to catch IOException)


Copyright © 2007 gageot.net. All Rights Reserved.