public class ModelFactory extends Object implements ERFListener
EventRecordFactory
Modifier and Type | Field and Description |
---|---|
(package private) Model |
currentmodel |
(package private) boolean |
lastEOF |
(package private) List |
listeners |
Constructor and Description |
---|
ModelFactory()
Constructor for ModelFactory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
processRecord(Record rec)
Process a Record.
|
void |
registerListener(ModelFactoryListener listener)
register a ModelFactoryListener so that it can receive
Models as they are created.
|
void |
run(InputStream stream)
Start processing the Workbook stream into Model events.
|
private void |
throwEvent(Model model)
Throws the model as an event to the listeners
|
public ModelFactory()
public void registerListener(ModelFactoryListener listener)
public void run(InputStream stream)
public boolean processRecord(Record rec)
ERFListener
processRecord
in interface ERFListener
private void throwEvent(Model model)
model
- to be thrownCopyright © 2015 Open Microscopy Environment