protected Double getCellNumericValue(Cell cell) {\r
if (cell == null)\r
return null;\r
- switch (cell.getCellType()) {\r
- case Cell.CELL_TYPE_BLANK:\r
+ switch (cell.getCellTypeEnum()) {\r
+ case BLANK:\r
return null;\r
- case Cell.CELL_TYPE_BOOLEAN:\r
+ case BOOLEAN:\r
return null;\r
- case Cell.CELL_TYPE_ERROR:\r
+ case ERROR:\r
return null;\r
- case Cell.CELL_TYPE_FORMULA:\r
+ case FORMULA:\r
return null;\r
- case Cell.CELL_TYPE_NUMERIC:\r
+ case NUMERIC:\r
return cell.getNumericCellValue();\r
- case Cell.CELL_TYPE_STRING:\r
+ case STRING:\r
+ return null;\r
+ case _NONE:\r
return null;\r
- \r
}\r
throw new RuntimeException();\r
}\r
protected String getCellStringValue(Cell cell) {\r
if (cell == null)\r
return null;\r
- switch (cell.getCellType()) {\r
- case Cell.CELL_TYPE_BLANK:\r
+ switch (cell.getCellTypeEnum()) {\r
+ case BLANK:\r
return null;\r
- case Cell.CELL_TYPE_BOOLEAN:\r
+ case BOOLEAN:\r
return Boolean.toString(cell.getBooleanCellValue());\r
- case Cell.CELL_TYPE_ERROR:\r
+ case ERROR:\r
return null;\r
- case Cell.CELL_TYPE_FORMULA:\r
+ case FORMULA:\r
return null;\r
- case Cell.CELL_TYPE_NUMERIC:\r
+ case NUMERIC:\r
return Double.toString(cell.getNumericCellValue());\r
- case Cell.CELL_TYPE_STRING:\r
+ case STRING:\r
return cell.getStringCellValue();\r
- \r
+ case _NONE:\r
+ return null;\r
}\r
throw new RuntimeException();\r
}\r
protected Boolean getCellBooleanValue(Cell cell) {\r
if (cell == null)\r
return null;\r
- switch (cell.getCellType()) {\r
- case Cell.CELL_TYPE_BLANK:\r
+ switch (cell.getCellTypeEnum()) {\r
+ case BLANK:\r
return null;\r
- case Cell.CELL_TYPE_BOOLEAN:\r
+ case BOOLEAN:\r
return cell.getBooleanCellValue();\r
- case Cell.CELL_TYPE_ERROR:\r
+ case ERROR:\r
return null;\r
- case Cell.CELL_TYPE_FORMULA:\r
+ case FORMULA:\r
return null;\r
- case Cell.CELL_TYPE_NUMERIC:\r
+ case NUMERIC:\r
return null;\r
- case Cell.CELL_TYPE_STRING:\r
+ case STRING:\r
String value = cell.getStringCellValue();\r
if ("true".equalsIgnoreCase(value))\r
return true;\r
if ("1".equalsIgnoreCase(value))\r
return true;\r
- return false; \r
+ return false;\r
+ case _NONE:\r
+ return null;\r
+ \r
}\r
throw new RuntimeException();\r
}\r