缓冲增大为200m
This commit is contained in:
@@ -60,7 +60,7 @@ public class ExcelUtils{
|
|||||||
FileInputStream inp = null;
|
FileInputStream inp = null;
|
||||||
try {
|
try {
|
||||||
inp = new FileInputStream(file);
|
inp = new FileInputStream(file);
|
||||||
BufferedInputStream bufferedInputStream = new BufferedInputStream(inp, 1024 * 50)
|
BufferedInputStream bufferedInputStream = new BufferedInputStream(inp, 1024 * 200)
|
||||||
Workbook workbook = WorkbookFactory.create(bufferedInputStream)
|
Workbook workbook = WorkbookFactory.create(bufferedInputStream)
|
||||||
workbook.setForceFormulaRecalculation(true)
|
workbook.setForceFormulaRecalculation(true)
|
||||||
Sheet sheet = workbook.getSheetAt(sheetIndex);
|
Sheet sheet = workbook.getSheetAt(sheetIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user