Class ModelFactory

java.lang.Object
loci.poi.hssf.eventmodel.ModelFactory
All Implemented Interfaces:
ERFListener

public class ModelFactory extends Object implements 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 Details

    • ModelFactory

      public ModelFactory()
      Constructor for ModelFactory. Does practically nothing.
  • Method Details

    • registerListener

      public void registerListener(ModelFactoryListener listener)
      register a ModelFactoryListener so that it can receive Models as they are created.
    • run

      public void run(InputStream stream)
      Start processing the Workbook stream into Model events.
    • processRecord

      public boolean processRecord(Record rec)
      Description copied from interface: ERFListener
      Process a Record. This method is called by the EventRecordFactory when a record is returned.
      Specified by:
      processRecord in interface ERFListener
      Returns:
      boolean specifying whether the effort was a success.