org.gageot.excel.core
Class ObjectCellMapper

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

public class ObjectCellMapper
extends java.lang.Object
implements CellMapper

CellMapper implementation that creates a java.lang.Object for each cell. It uses java.lang.String for text cells and java.lang.Double for numerical cells.

Author:
David Gageot

Constructor Summary
ObjectCellMapper()
           
 
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

ObjectCellMapper

public ObjectCellMapper()
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.