我有强迫症
nutz-integration-json4excel
类 J4E
public static <T> boolean toExcel(OutputStream out, List<T> dataList, J4EConf j4eConf) {
Workbook wb = j4eConf != null && j4eConf.isUse2007() ? new XSSFWorkbook() : new HSSFWorkbook();
return toExcel((Workbook)wb, out, dataList, j4eConf);
}
public static <T> boolean toExce(File excel, List<T> dataList, J4EConf j4eConf) {
Object wb = j4eConf != null && j4eConf.isUse2007() ? new XSSFWorkbook() : new HSSFWorkbook();
try {
return toExcel((Workbook)wb, new FileOutputStream(excel), dataList, j4eConf);
} catch (FileNotFoundException var5) {
log.error(var5);
return false;
}
}
toExcel 和 toExce , 看了一下,是不是手抖啦?