import java.io.FileOutputStream;
import java.io.OutputStream;
import org.apache.poi.xssf.streaming.SXSSFRow;
import org.apache.poi.xssf.streaming.SXSSFSheet;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.apache.poi.xssf.usermodel.XSSFRow;
public class TestPOI {
public static void main(String[] args) throws Exception {
OutputStream os = new FileOutputStream("D:/"+System.currentTimeMillis()+".xlsx");
SXSSFWorkbook wb = new SXSSFWorkbook();
SXSSFSheet sheet= (SXSSFSheet)wb.createSheet("test");
SXSSFRow row =null;
for(int i=0;i<110000;i++){
row = (SXSSFRow) sheet.createRow(i);
for(int a=0;a<10;a++){
row.createCell(a).setCellValue("column"+a);
}
row=null;
System.out.println(i);
}
wb.write(os);
os.close();
}
}