poi简单读取excel内容格式有关问题

poi简单读取excel内容格式问题
poi简单读取excel内容格式有关问题
对应的类型有对应的值如何判断,方法如下:
cell.getCellType()
获取对应格式的值(int)。对比上面的可知道是什么类型的。
                        // 时间,整形,字符串
			// 第一列 时间
			HSSFCell cell = sheet.getRow(rowIndex).getCell(0);
			Date date = cell.getDateCellValue();
			// 第二列 整形
			cell = sheet.getRow(rowIndex).getCell(1);
			int number = (int) cell.getNumericCellValue();
			// 第三列 字符串
			cell = sheet.getRow(rowIndex).getCell(2);
			String str = cell.getStringCellValue();