public final class EventRecordFactory
extends java.lang.Object
ERFListener.processRecord(org.apache.poi.hssf.record.Record)
messages to the supplied listener. Record notifications are sent one record behind to ensure that
ContinueRecord
s are processed first.
(基于事件的记录工厂。与 RecordFactory 不同,此版本将 ERFListener.processRecord(org.apache.poi.hssf.record.Record) 消息发送到提供的侦听器。记录通知会在一条记录之后发送,以确保首先处理 ContinueRecords。)
Constructor and Description |
---|
EventRecordFactory(ERFListener listener, short[] sids)
Create an EventRecordFactory
|
Modifier and Type | Method and Description |
---|---|
void |
processRecords(java.io.InputStream in)
Create an array of records from an input stream
(从输入流创建记录数组)
|
public EventRecordFactory(ERFListener listener, short[] sids)
listener
- the listener to be informed about events
(listener - 要被告知事件的侦听器)
sids
- an array of Record.sid values identifying the records the listener will work with. Alternatively if this is "null" then all records are passed. For all 'known' record types use
RecordFactory.getAllKnownRecordSIDs()
(sids - Record.sid 值的数组,标识侦听器将使用的记录。或者,如果这是“null”,则所有记录都将通过。对于所有“已知”记录类型,请使用 RecordFactory.getAllKnownRecordSIDs())
public void processRecords(java.io.InputStream in) throws RecordFormatException
in
- the InputStream from which the records will be obtained
(in - 将从中获取记录的 InputStream)
RecordFormatException
- on error processing the InputStream
(RecordFormatException - 处理 InputStream 时出错)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.