使用 POI 读入 Excel 文件并写到另外一个 Excel 文件,poiexcel,InputStream
分享于 点击 6291 次 点评:200
使用 POI 读入 Excel 文件并写到另外一个 Excel 文件,poiexcel,InputStream
InputStream inputStream = getClass().getClassLoader(). getResourceAsStream("templates/template_report.xls");POIFSFileSystem fileSystem = new POIFSFileSystem(inputStream);HSSFWorkbook workBook = new HSSFWorkbook(fileSystem);FileOutputStream out = new FileOutputStream("workbook.xls");workBook.write(out);out.close();inputStream.close();//该片段来自于http://byrx.net
用户点评