Package loci.poi.hssf.eventmodel
Class ModelFactory
java.lang.Object
loci.poi.hssf.eventmodel.ModelFactory
- All Implemented Interfaces:
ERFListener
ModelFactory creates workbook and sheet models based upon
events thrown by them there events from the EventRecordFactory.
- Author:
- Andrew C. Oliver acoliver@apache.org
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocessRecord(Record rec) Process a Record.voidregisterListener(ModelFactoryListener listener) register a ModelFactoryListener so that it can receive Models as they are created.voidrun(InputStream stream) Start processing the Workbook stream into Model events.
-
Constructor Details
-
ModelFactory
public ModelFactory()Constructor for ModelFactory. Does practically nothing.
-
-
Method Details
-
registerListener
register a ModelFactoryListener so that it can receive Models as they are created. -
run
Start processing the Workbook stream into Model events. -
processRecord
Description copied from interface:ERFListenerProcess a Record. This method is called by the EventRecordFactory when a record is returned.- Specified by:
processRecordin interfaceERFListener- Returns:
- boolean specifying whether the effort was a success.
-