Java-API-POI-Excel:SXSSFWorkbook Documentation
其他
2019-03-18 11:38:04
阅读次数: 0
ylbtech-Java-API-POI-Excel:SXSSFWorkbook Documentation |
1、
- java.lang.Object
-
- org.apache.poi.xssf.streaming.SXSSFWorkbook
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<
Sheet>,
Workbook
-
Direct Known Subclasses:
-
SXSSFWorkbookWithCustomZipEntrySource
public class SXSSFWorkbook
extends java.lang.Object
implements Workbook
Streaming version of XSSFWorkbook implementing the "BigGridDemo" strategy. This allows to write very large files without running out of memory as only a configurable portion of the rows are kept in memory at any one time. You can provide a template workbook which is used as basis for the written data. See https://poi.apache.org/spreadsheet/how-to.html#sxssf for details. Please note that there are still things that still may consume a large amount of memory based on which features you are using, e.g. merged regions, comments, ... are still only stored in memory and thus may require a lot of memory if used extensively. SXSSFWorkbook defaults to using inline strings instead of a shared strings table. This is very efficient, since no document content needs to be kept in memory, but is also known to produce documents that are incompatible with some clients. With shared strings enabled all unique strings in the document has to be kept in memory. Depending on your document content this could use a lot more resources than with shared strings disabled. Carefully review your memory budget and compatibility needs before deciding whether to enable shared strings or not.
-
-
Constructor Summary
Constructors
Constructor and Description |
SXSSFWorkbook()
Construct a new workbook with default row window size
|
SXSSFWorkbook(int rowAccessWindowSize)
Construct an empty workbook and specify the window for row access.
|
SXSSFWorkbook(XSSFWorkbook workbook)
Construct a workbook from a template.
|
SXSSFWorkbook(XSSFWorkbook workbook, int rowAccessWindowSize)
Constructs an workbook from an existing workbook.
|
SXSSFWorkbook(XSSFWorkbook workbook, int rowAccessWindowSize, boolean compressTmpFiles)
Constructs an workbook from an existing workbook.
|
SXSSFWorkbook(XSSFWorkbook workbook, int rowAccessWindowSize, boolean compressTmpFiles, boolean useSharedStringsTable)
Constructs an workbook from an existing workbook.
|
2、
1、
2、
转载自www.cnblogs.com/storebook/p/10551076.html