}
sheet.getRows().add(r);
}
private void handleCell(final Row row, final org.apache.poi.ss.usermodel.Cell cell) {
Cell c = new Cell();
String value = "";
if (cell.getCellType() == org.apache.poi.ss.usermodel.Cell.CELL_TYPE_BLANK) {
value = cell.getStringCellValue();
} else if (cell.getCellType() == org.apache.poi.ss.usermodel.Cell.CELL_TYPE_BOOLEAN) {
value = Boolean.toString(cell.getBooleanCellValue());
} else if (cell.getCellType() == org.apache.poi.ss.usermodel.Cell.CELL_TYPE_ERROR) {
value = Byte.toString(cell.getErrorCellValue());
} else if (cell.getCellType() == org.apache.poi.ss.usermodel.Cell.CELL_TYPE_FORMULA) {
value = cell.getCellFormula();
} else if (cell.getCellType() == org.apache.poi.ss.usermodel.Cell.CELL_TYPE_NUMERIC) {
value = Double.toString(cell.getNumericCellValue());
} else if (cell.getCellType() == org.apache.poi.ss.usermodel.Cell.CELL_TYPE_STRING) {
value = cell.getStringCellValue();
}
c.setValue(value);
row.getCells().add(c);
}