Class MissingRecordAwareHSSFListener
- java.lang.Object
-
- org.apache.poi.hssf.eventusermodel.MissingRecordAwareHSSFListener
-
- All Implemented Interfaces:
HSSFListener
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.
-
-
Constructor Summary
Constructors Constructor Description MissingRecordAwareHSSFListener(HSSFListener listener)
Constructs a new MissingRecordAwareHSSFListener, which will fire processRecord on the supplied child HSSFListener for all Records, and missing records.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processRecord(Record record)
process an HSSF Record.
-
-
-
Constructor Detail
-
MissingRecordAwareHSSFListener
public MissingRecordAwareHSSFListener(HSSFListener listener)
Constructs a new MissingRecordAwareHSSFListener, which will fire processRecord on the supplied child HSSFListener for all Records, and missing records.- Parameters:
listener
- The HSSFListener to pass records on to
-
-
Method Detail
-
processRecord
public void processRecord(Record record)
Description copied from interface:HSSFListener
process an HSSF Record. Called when a record occurs in an HSSF file.- Specified by:
processRecord
in interfaceHSSFListener
- Parameters:
record
- the record to be processed
-
-