public static File xssfWorkbookToFile(HSSFWorkbook wb, String name) { File toFile = new File(name); try { OutputStream os = new FileOutputStream(toFile); wb.write(os); os.close(); } catch (Exception e) { e.printStackTrace(); } return toFile; }
HSSFWorkbook 转 file
最新推荐文章于 2024-06-19 17:14:27 发布