Memory efficient Shared Strings Table implementation for POI xlsx streaming. Supports read and write use cases when used with POI 4.0.
TempFileSharedStringsTable uses a H2 MVStore to store the Excel Shared String data. The MVStore data can be encrypted using a generated password.
There is an xlsx reading sample and also an xlsx writing sample at https://github.com/pjfanning/poi-shared-strings-sample.
When reading files, use
new TempFileSharedStringsTable(opcPackage, true) to have the shared strings loaded from the xlsx package.
If you are using the TempFileSharedStringsTable when writing files (eg using SXSSFWorkbook), then use
new TempFileSharedStringsTable(true) to create an empty table that you can add shared string entries to.