public final class MissingRecordAwareHSSFListener extends java.lang.Object implements HSSFListener
A HSSFListener which tracks rows and columns, and will trigger your HSSFListener for all rows and cells, even the ones that aren't actually stored in the file.
This allows your code to have a more "Excel" like view of the data in the file, and not have to worry (as much) about if a particular row/cell is in the file, or was skipped from being written as it was blank.
(一个 HSSFListener 跟踪行和列,并将触发所有行和单元格的 HSSFListener,即使是那些实际上没有存储在文件中的行和单元格。这允许您的代码对文件中的数据有一个更像“Excel”的视图,而不必(尽可能多地)担心特定行/单元格是否在文件中,或者被跳过原样写入空白的。)Constructor and Description |
---|
MissingRecordAwareHSSFListener(HSSFListener listener)
Constructs a new MissingRecordAwareHSSFListener, which will fire processRecord on the supplied child HSSFListener for all Records, and missing records.
|
Modifier and Type | Method and Description |
---|---|
void |
processRecord(Record record)
process an HSSF Record.
(处理 HSSF 记录。)
|
public MissingRecordAwareHSSFListener(HSSFListener listener)
listener
- The HSSFListener to pass records on to
(listener - 将记录传递给的 HSSFListener)
public void processRecord(Record record)
HSSFListener
processRecord
in interface
HSSFListener
(接口 HSSFListener 中的 processRecord)
record
- the record to be processed
(record - 要处理的记录)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.