是否有任何可能使用POI库和Java改进对excel文件的读写? 现在我的代码看起来像这样:读写Excel文件的改进[POI,Java]
//Reading a file
FileInputStream fin = new FileInputStream(new File(localizationOfExcelFile));
Workbook workbook = new XSSFWorkbook(fin);
//Writing to a file
FileOutputStream fout = new FileOutputStream(new File(localizationOfExcelFile));
workbook.write(fout);
fout.close();
非常感谢!
改进什么?性能 –
[poi网站](https://poi.apache.org/spreadsheet/quick-guide.html#ReadWriteWorkbook)也一样。 –
直接使用[File,而不是InputStream](http://poi.apache.org/spreadsheet/quick-guide.html#FileInputStream) - 更快+内存更低 – Gagravarr