Package io.github.dornol.excelkit.excel
Class ExcelKitConfig
java.lang.Object
io.github.dornol.excelkit.excel.ExcelKitConfig
Application-level configuration for excel-kit.
These settings affect JVM-global Apache POI limits and should be called once
at application startup — typically in a Spring @PostConstruct or
main() method.
- Since:
- 0.14.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidConfigures Apache POI's internal limits for reading large Excel files.static voidconfigureLargeFileSupport(int maxFileCount, int maxByteArraySize) Configures Apache POI's internal limits with custom values.
-
Method Details
-
configureLargeFileSupport
public static void configureLargeFileSupport()Configures Apache POI's internal limits for reading large Excel files.Adjusts:
ZipSecureFile.setMaxFileCount(1,000,000)— max internal zip entriesIOUtils.setByteArrayMaxOverride(500,000,000)— max in-memory byte array size
Note: These are JVM-global settings and affect all POI operations in the same process.
-
configureLargeFileSupport
public static void configureLargeFileSupport(int maxFileCount, int maxByteArraySize) Configures Apache POI's internal limits with custom values.- Parameters:
maxFileCount- Maximum number of zip entries (default: 1,000,000)maxByteArraySize- Maximum byte array size in bytes (default: 500,000,000)
-