org.gageot.excel.core
Class StringCellMapper

java.lang.Object
  extended by org.gageot.excel.core.StringCellMapper
All Implemented Interfaces:
CellMapper

public class StringCellMapper
extends java.lang.Object
implements CellMapper

CellMapper implementation that creates a java.lang.String for each cell.

Author:
David Gageot

Constructor Summary
StringCellMapper()
           
 
Method Summary
 java.lang.Object mapCell(org.apache.poi.hssf.usermodel.HSSFCell cell, int rowNum, int columnNum)
          Implementations must implement this method to map each cell of data in the HSSFSheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringCellMapper

public StringCellMapper()
Method Detail

mapCell

public java.lang.Object mapCell(org.apache.poi.hssf.usermodel.HSSFCell cell,
                                int rowNum,
                                int columnNum)
                         throws java.io.IOException
Description copied from interface: CellMapper
Implementations must implement this method to map each cell of data in the HSSFSheet. This method should extract the values of the current cell.

Specified by:
mapCell in interface CellMapper
Parameters:
cell - the HSSFCell to map
rowNum - the number of the current row
columnNum - the number of the current column
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.