Package org.apache.poi.hssf.eventmodel
Class EventRecordFactory
- java.lang.Object
- 
- org.apache.poi.hssf.eventmodel.EventRecordFactory
 
- 
 public final class EventRecordFactory extends Object Event-based record factory. As opposed to RecordFactory this version sendsERFListener.processRecord(org.apache.poi.hssf.record.Record)messages to the supplied listener. Record notifications are sent one record behind to ensure thatContinueRecords are processed first.
- 
- 
Constructor SummaryConstructors Constructor Description EventRecordFactory(ERFListener listener, short[] sids)Create an EventRecordFactory
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessRecords(InputStream in)Create an array of records from an input stream
 
- 
- 
- 
Constructor Detail- 
EventRecordFactorypublic EventRecordFactory(ERFListener listener, short[] sids) Create an EventRecordFactory- Parameters:
- listener- the listener to be informed about events
- sids- 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 use- RecordFactory.getAllKnownRecordSIDs()
 
 
- 
 - 
Method Detail- 
processRecordspublic void processRecords(InputStream in) throws RecordFormatException 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
 
 
- 
 
-