Class BigGridDemo
- java.lang.Object
-
- org.apache.poi.examples.xssf.usermodel.BigGridDemo
-
public final class BigGridDemo extends Object
Demonstrates a workaround you can use to generate large workbooks and avoid OutOfMemory exception.Note - You probably don't want to use this approach any more! POI now includes the SXSSF which handles all of this for you, you should be using that instead! This code remains mostly for historical interest.
If you really want to use this approach, which is also the one that SXSSF does for you, it works as follows:
- create a template workbook, create sheets and global objects such as cell styles, number formats, etc.
- create an application that streams data in a text file
- Substitute the sheet in the template with the generated data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BigGridDemo.SpreadsheetWriter
Writes spreadsheet data in a Writer.
-