HSSFRow row = (HSSFRow)rowIterator.next();
Iterator cellIterator = row.cellIterator();
while (cellIterator.hasNext()) {
HSSFCell cell = (HSSFCell)cellIterator.next();
String cellStringValue = null;
if (cell.getCellType() == 4) {
boolean booleanValue = cell.getBooleanCellValue();
cellStringValue = Boolean.toString(booleanValue);
}
else if (cell.getCellType() == 0) {
double doubleValue = cell.getNumericCellValue();
cellStringValue = Double.toString(doubleValue);
}
else if (cell.getCellType() == 1) {
cellStringValue = cell.getStringCellValue();
}
if (cellStringValue != null) {
sb.append(cellStringValue);
sb.append("\t");