public static class EventWorkbookBuilder.SheetRecordCollectingListener extends java.lang.Object implements HSSFListener
BoundSheetRecord
s and
ExternSheetRecord
s as they go past, so you can create a Stub
InternalWorkbook
from them once required.
(一个包装 HSSFListener 将在 BoundSheetRecords 和 ExternSheetRecords 过去时收集它们,因此您可以在需要时从它们创建一个 Stub InternalWorkbook。)
Constructor and Description |
---|
SheetRecordCollectingListener(HSSFListener childListener) |
Modifier and Type | Method and Description |
---|---|
BoundSheetRecord[] |
getBoundSheetRecords() |
ExternSheetRecord[] |
getExternSheetRecords() |
SSTRecord |
getSSTRecord() |
HSSFWorkbook |
getStubHSSFWorkbook() |
InternalWorkbook |
getStubWorkbook() |
void |
processRecord(Record record)
Process this record ourselves, and then pass it on to our child listener
(自己处理这个记录,然后将它传递给我们的子监听器)
|
void |
processRecordInternally(Record record)
Process the record ourselves, but do not pass it on to the child Listener.
(自己处理记录,但不要将其传递给子侦听器。)
|
public SheetRecordCollectingListener(HSSFListener childListener)
public BoundSheetRecord[] getBoundSheetRecords()
public ExternSheetRecord[] getExternSheetRecords()
public SSTRecord getSSTRecord()
public HSSFWorkbook getStubHSSFWorkbook()
public InternalWorkbook getStubWorkbook()
public void processRecord(Record record)
processRecord
in interface
HSSFListener
(接口 HSSFListener 中的 processRecord)
record
- the record to be processed
(record - 要处理的记录)
public void processRecordInternally(Record record)
record
- the record to be processed
(record - 要处理的记录)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.