public class EventRecordFactory
extends java.lang.Object
Constructor and Description |
---|
EventRecordFactory()
Construct an abortable EventRecordFactory.
|
EventRecordFactory(boolean abortable)
Create an EventRecordFactory
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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
obtainedRecordFormatException
- on error processing the
InputStreampublic static Record[] createRecord(RecordInputStream in)
public static short[] getAllKnownRecordSIDs()
Copyright © 2014 Open Microscopy Environment