code: public static Object getCellValue(HSSFCell cell) {
      if ((cell == null)) return null;
      switch (cell.getCellTypeEnum()) {
      case BLANK:
        return null;
      case STRING:
        return Strings.trim(cell.getRichStringCellValue().getString());
      case NUMERIC:
        if (DateUtil.isCellDateFormatted(cell)) {
          return cell.getDateCellValue();
        } else {
          return numberFormat.format(cell.getNumericCellValue());
        }
      case BOOLEAN:
        return (cell.getBooleanCellValue()) ? Boolean.TRUE : Boolean.FALSE;
      default:
        // cannot handle HSSFCell.CELL_TYPE_ERROR,HSSFCell.CELL_TYPE_FORMULA
        return null;
      }
    }
docs: 取cell单元格中的数据
  
  @param cell a {@link org.apache.poi.hssf.usermodel.HSSFCell} object.
  @return a {@link java.lang.Object} object.