public static interface XSSFSheetXMLHandler.SheetContentsHandler
XSSFReader
. By implementing the methods, you can process arbitrarily large files without exhausting main memory.
(此接口允许在流模式下读取工作表时提供回调。 XSLX 文件通常通过 XSSFReader 读取。通过实现这些方法,您可以在不耗尽主内存的情况下处理任意大的文件。)
Modifier and Type | Method and Description |
---|---|
void |
cell(java.lang.String cellReference, java.lang.String formattedValue, XSSFComment comment)
A cell, with the given formatted value (may be null), and possibly a comment (may be null), was encountered.
(遇到具有给定格式化值(可能为空)和可能注释(可能为空)的单元格。)
|
void |
endRow(int rowNum)
A row with the (zero based) row number has ended
(具有(从零开始的)行号的行已结束)
|
default void |
endSheet()
Signal that the end of a sheet was been reached
(表示已到达工作表末尾的信号)
|
default void |
headerFooter(java.lang.String text, boolean isHeader, java.lang.String tagName)
A header or footer has been encountered
(遇到页眉或页脚)
|
void |
startRow(int rowNum)
A row with the (zero based) row number has started
(具有(从零开始的)行号的行已开始)
|
void startRow(int rowNum)
void endRow(int rowNum)
void cell(java.lang.String cellReference, java.lang.String formattedValue, XSSFComment comment)
cell
. See the code in
src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java
for an example of how to handle this scenario.
(遇到具有给定格式化值(可能为空)和可能注释(可能为空)的单元格。缺少单元格或空单元格的工作表可能会导致对单元格的调用稀疏。有关如何处理这种情况的示例,请参阅 src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java 中的代码。)
default void headerFooter(java.lang.String text, boolean isHeader, java.lang.String tagName)
default void endSheet()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.