|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.eventmodel.EventRecordFactory
public class EventRecordFactory
Event-based record factory. As opposed to RecordFactory this refactored version throws record events as it comes accross the records. I throws the "lazily" one record behind to ensure that ContinueRecords are processed first.
Constructor Summary | |
---|---|
EventRecordFactory()
Construct an abortable EventRecordFactory. |
|
EventRecordFactory(boolean abortable)
Create an EventRecordFactory |
Method Summary | |
---|---|
static Record[] |
createRecord(RecordInputStream in)
create a record, if there are MUL records than multiple records are returned digested into the non-mul form. |
static short[] |
getAllKnownRecordSIDs()
|
protected java.util.Iterator |
listeners()
used for unit tests to test the registration of record listeners. |
void |
processRecords(java.io.InputStream in)
Create an array of records from an input stream |
void |
registerListener(ERFListener listener,
short[] sids)
Register a listener for records. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventRecordFactory()
EventRecordFactory(boolean)
public EventRecordFactory(boolean abortable)
abortable
- specifies whether the return from the listener
handler functions are obeyed. False means they are ignored. True
means the event loop exits on error.Method Detail |
---|
public void registerListener(ERFListener listener, short[] sids)
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.protected java.util.Iterator listeners()
public void processRecords(java.io.InputStream in) throws RecordFormatException
in
- the InputStream from which the records will be
obtained
RecordFormatException
- on error processing the
InputStreampublic static Record[] createRecord(RecordInputStream in)
public static short[] getAllKnownRecordSIDs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |