|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.eventusermodel.HSSFEventFactory
public class HSSFEventFactory
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.
EFHSSF
Constructor Summary | |
---|---|
HSSFEventFactory()
Creates a new instance of HSSFEventFactory |
Method Summary | |
---|---|
short |
abortableProcessEvents(HSSFRequest req,
java.io.InputStream in)
Processes a DocumentInputStream into essentially Record events. |
short |
abortableProcessWorkbookEvents(HSSFRequest req,
POIFSFileSystem fs)
Processes a file into essentially record events. |
protected short |
genericProcessEvents(HSSFRequest req,
RecordInputStream in)
Processes a DocumentInputStream into essentially Record events. |
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 |
---|
public HSSFEventFactory()
Method Detail |
---|
public void processWorkbookEvents(HSSFRequest req, POIFSFileSystem fs) throws java.io.IOException
req
- an Instance of HSSFRequest which has your registered listenersfs
- a POIFS filesystem containing your workbook
java.io.IOException
public short abortableProcessWorkbookEvents(HSSFRequest req, POIFSFileSystem fs) throws java.io.IOException, HSSFUserException
req
- an Instance of HSSFRequest which has your registered listenersfs
- a POIFS filesystem containing your workbook
java.io.IOException
HSSFUserException
public void processEvents(HSSFRequest req, java.io.InputStream in) throws java.io.IOException
AbortableHSSFListener
causes a halt to processing during this call
the method will return just as with abortableProcessEvents
, but no
user code or HSSFUserException
will be passed back.
req
- an Instance of HSSFRequest which has your registered listenersin
- a DocumentInputStream obtained from POIFS's POIFSFileSystem object
java.io.IOException
POIFSFileSystem.createDocumentInputStream(String)
public short abortableProcessEvents(HSSFRequest req, java.io.InputStream in) throws java.io.IOException, HSSFUserException
req
- an Instance of HSSFRequest which has your registered listenersin
- a DocumentInputStream obtained from POIFS's POIFSFileSystem object
java.io.IOException
HSSFUserException
POIFSFileSystem.createDocumentInputStream(String)
protected short genericProcessEvents(HSSFRequest req, RecordInputStream in) throws java.io.IOException, HSSFUserException
req
- an Instance of HSSFRequest which has your registered listenersin
- a DocumentInputStream obtained from POIFS's POIFSFileSystem object
java.io.IOException
HSSFUserException
POIFSFileSystem.createDocumentInputStream(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |