public class HSSFRequest
extends java.lang.Object
HSSFEventFactory
,
HSSFListener
,
HSSFUserException
Constructor and Description |
---|
HSSFRequest()
Creates a new instance of HSSFRequest
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(HSSFListener lsnr,
short sid)
add an event listener for a particular record type.
|
void |
addListenerForAllRecords(HSSFListener lsnr)
This is the equivalent of calling addListener(myListener, sid) for EVERY
record in the org.apache.poi.hssf.record package.
|
protected short |
processRecord(Record rec)
Called by HSSFEventFactory, passes the Record to each listener associated with
a record.sid.
|
public void addListener(HSSFListener lsnr, short sid)
lsnr
- for the eventsid
- identifier for the record type this is the .sid static member on the individual records
for example req.addListener(myListener, BOFRecord.sid)addListenerForAllRecords(HSSFListener)
public void addListenerForAllRecords(HSSFListener lsnr)
lsnr
- a single listener to associate with ALL recordsprotected short processRecord(Record rec) throws HSSFUserException
rec
- the record to be processedHSSFUserException
- User exception conditionCopyright 2022 The Apache Software Foundation or its licensors, as applicable.