org.gageot.excel.core
Interface RowCallbackHandler


public interface RowCallbackHandler

Callback interface used by ExcelTemplate's query methods. Implementations of this interface perform the actual work of extracting results from rows, but don't need to worry about exception handling. IOExceptions will be caught and handled correctly by the ExcelTemplate class.

In contrast to a SheetExtractor, a RowCallbackHandler object is typically stateful: It keeps the result state within the object, to be available for later inspection.

Author:
David Gageot
See Also:
SheetExtractor, RowMapper

Method Summary
 void processRow(org.apache.poi.hssf.usermodel.HSSFRow row, int rowNum)
          Implementations must implement this method to process each row of data in the HSSFSheet.
 

Method Detail

processRow

void processRow(org.apache.poi.hssf.usermodel.HSSFRow row,
                int rowNum)
                throws java.io.IOException
Implementations must implement this method to process each row of data in the HSSFSheet. This method should extract the current values. Exactly what the implementation chooses to do is up to it; a trivial implementation might simply count rows, while another implementation might build an XML document.

Parameters:
row - the HSSFRow to process
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.