Package org.apache.poi.hssf.eventmodel
Class EventRecordFactory
java.lang.Object
org.apache.poi.hssf.eventmodel.EventRecordFactory
Event-based record factory. As opposed to RecordFactory
this version sends
ERFListener.processRecord(Record) messages to
the supplied listener. Record notifications are sent one record behind
to ensure that ContinueRecords are processed first.-
Constructor Summary
ConstructorsConstructorDescriptionEventRecordFactory(ERFListener listener, short[] sids) Create an EventRecordFactory -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate an array of records from an input stream
-
Constructor Details
-
EventRecordFactory
Create an EventRecordFactory- Parameters:
listener- the listener to be informed about eventssids- an array of Record.sid values identifying the records the listener will work with. Alternatively if this is "null" then all records are passed. For all 'known' record types useRecordFactory.getAllKnownRecordSIDs()
-
-
Method Details
-
processRecords
Create an array of records from an input stream- Parameters:
in- the InputStream from which the records will be obtained- Throws:
RecordFormatException- on error processing the InputStream
-