org.apache.poi.hssf.eventmodel
Class HSSFEventFactory

java.lang.Object
  |
  +--org.apache.poi.hssf.eventmodel.HSSFEventFactory

public class HSSFEventFactory
extends java.lang.Object

Low level event based HSSF reader. Pass either a DocumentInputStream to process events along with a request object or pass a POIFS POIFSFileSystem to processWorkbookEvents along with a request. This will cause your file to be processed a record at a time. Each record with a static id matching one that you have registed in your HSSFRequest will be passed to your associated HSSFListener.

Author:
andy
See Also:
EFHSSF

Constructor Summary
HSSFEventFactory()
          Creates a new instance of HSSFEventFactory
 
Method Summary
 void processEvents(HSSFRequest req, java.io.InputStream in)
          Processes a DocumentInputStream into essentially Record events.
 void processWorkbookEvents(HSSFRequest req, POIFSFileSystem fs)
          Processes a file into essentially record events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSSFEventFactory

public HSSFEventFactory()
Creates a new instance of HSSFEventFactory
Method Detail

processWorkbookEvents

public void processWorkbookEvents(HSSFRequest req,
                                  POIFSFileSystem fs)
                           throws java.io.IOException
Processes a file into essentially record events.
Parameters:
req - an Instance of HSSFRequest which has your registered listeners
fs - a POIFS filesystem containing your workbook

processEvents

public void processEvents(HSSFRequest req,
                          java.io.InputStream in)
                   throws java.io.IOException
Processes a DocumentInputStream into essentially Record events.
Parameters:
req - an Instance of HSSFRequest which has your registered listeners
in - a DocumentInputStream obtained from POIFS's POIFSFileSystem object
See Also:
POIFSFileSystem.createDocumentInputStream(String)


Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.