Class EventWorkbookBuilder.SheetRecordCollectingListener
- java.lang.Object
-
- org.apache.poi.hssf.eventusermodel.EventWorkbookBuilder.SheetRecordCollectingListener
-
- All Implemented Interfaces:
HSSFListener
- Enclosing class:
- EventWorkbookBuilder
public static class EventWorkbookBuilder.SheetRecordCollectingListener extends java.lang.Object implements HSSFListener
A wrapping HSSFListener which will collectBoundSheetRecords andExternSheetRecords as they go past, so you can create a StubInternalWorkbookfrom them once required.
-
-
Constructor Summary
Constructors Constructor Description SheetRecordCollectingListener(HSSFListener childListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundSheetRecord[]getBoundSheetRecords()ExternSheetRecord[]getExternSheetRecords()SSTRecordgetSSTRecord()HSSFWorkbookgetStubHSSFWorkbook()InternalWorkbookgetStubWorkbook()voidprocessRecord(Record record)Process this record ourselves, and then pass it on to our child listenervoidprocessRecordInternally(Record record)Process the record ourselves, but do not pass it on to the child Listener.
-
-
-
Constructor Detail
-
SheetRecordCollectingListener
public SheetRecordCollectingListener(HSSFListener childListener)
-
-
Method Detail
-
getBoundSheetRecords
public BoundSheetRecord[] getBoundSheetRecords()
-
getExternSheetRecords
public ExternSheetRecord[] getExternSheetRecords()
-
getSSTRecord
public SSTRecord getSSTRecord()
-
getStubHSSFWorkbook
public HSSFWorkbook getStubHSSFWorkbook()
-
getStubWorkbook
public InternalWorkbook getStubWorkbook()
-
processRecord
public void processRecord(Record record)
Process this record ourselves, and then pass it on to our child listener- Specified by:
processRecordin interfaceHSSFListener- Parameters:
record- the record to be processed
-
processRecordInternally
public void processRecordInternally(Record record)
Process the record ourselves, but do not pass it on to the child Listener.- Parameters:
record- the record to be processed
-
-