public XSSFWorkbook(java.io.File file)
throws java.io.IOException,
InvalidFormatException
Constructs a XSSFWorkbook object from a given file.
Once you have finished working with the Workbook, you should close the package by calling POIXMLDocument.close(), to avoid leaving file handles open.
Opening a XSSFWorkbook from a file has a lower memory footprint than opening from an InputStream
Parameters:
file - the file to open
Throws:
java.io.IOException
InvalidFormatException
nao use inputstream, passe o file ou path direto que usa menos memoria
diz a documentação que consegue lidar com streaming/ grandes planilhas. aparentemente se vc cria o XSSFWorkbook vc pode passar para o contrutor desse outro pacote e navegar. dizem.
F
felipe.b31
O erro acontece aqui: XSSFWorkbook wb = new XSSFWorkbook(fi);
Sobre o SXSSF, verifiquei que ele é apenas para escrita, não funciona para leitura.