/**
* 校验excle当前row是否是空行
*
* @param row
* @return
*/
@SuppressWarnings(“deprecation”)
public static boolean isEmptyRow(Row row) {
if (row == null || row.toString().isEmpty()) {
return true;
} else {
Iterator it = row.iterator();
boolean isEmpty = true;
while (it.hasNext()) {
Cell cell = it.next();
if (cell.getCellType() != CellType.BLANK) {
isEmpty = false;
break;
}
}
return isEmpty;
}
}
校验excle当前row是否是空行
最新推荐文章于 2022-08-17 15:22:23 发布