public final class RecordFactory
extends java.lang.Object
Description: Takes a stream and outputs an array of Record objects.
(标题:Record Factory 描述:获取一个流并输出一个 Record 对象数组。)EventRecordFactory
Modifier and Type | Method and Description |
---|---|
static BlankRecord[] |
convertBlankRecords(MulBlankRecord mbk)
Converts a
MulBlankRecord into an equivalent array of
BlankRecords
(将 MulBlankRecord 转换为等价的 BlankRecords 数组)
|
static NumberRecord[] |
convertRKRecords(MulRKRecord mrk)
Converts a
MulRKRecord into an equivalent array of
NumberRecords
(将 MulRKRecord 转换为 NumberRecords 的等效数组)
|
static NumberRecord |
convertToNumberRecord(RKRecord rk)
RK record is a slightly smaller alternative to NumberRecord POI likes NumberRecord better
(RK 记录是 NumberRecord 的稍小的替代品 POI 更喜欢 NumberRecord)
|
static Record[] |
createRecord(RecordInputStream in)
create a record, if there are MUL records than multiple records are returned digested into the non-mul form.
(创建一条记录,如果有 MUL 记录而不是多条记录,则以非 mul 形式返回。)
|
static java.util.List<Record> |
createRecords(java.io.InputStream in)
Create an array of records from an input stream
(从输入流创建记录数组)
|
static Record |
createSingleRecord(RecordInputStream in) |
static short[] |
getAllKnownRecordSIDs() |
static java.lang.Class<? extends Record> |
getRecordClass(int sid)
Debug / diagnosis method
(调试/诊断方法)
|
public static java.lang.Class<? extends Record> getRecordClass(int sid)
Gets the POI implementation class for a given sid
. Only a subset of the BIFF records are actually interpreted by POI. A few others are known but not interpreted (see UnknownRecord.getBiffName(int)
).
sid
- the record sid
(sid - 记录 sid)
sid
.
null
if the specified record is not interpreted by POI.
(指定记录 sid 的 POI 实现类。如果指定的记录未被 POI 解释,则为 null。)
public static Record[] createRecord(RecordInputStream in)
in
- the RecordInputStream to read from
(in - 要读取的 RecordInputStream)
public static Record createSingleRecord(RecordInputStream in)
public static NumberRecord convertToNumberRecord(RKRecord rk)
rk
- the RK record to convert
(rk - 要转换的 RK 记录)
public static NumberRecord[] convertRKRecords(MulRKRecord mrk)
MulRKRecord
into an equivalent array of
NumberRecords
(将 MulRKRecord 转换为 NumberRecords 的等效数组)
mrk
- the MulRKRecord to convert
(mrk - 要转换的 MulRKRecord)
NumberRecords
(NumberRecords 的等效数组)
public static BlankRecord[] convertBlankRecords(MulBlankRecord mbk)
MulBlankRecord
into an equivalent array of
BlankRecords
(将 MulBlankRecord 转换为等价的 BlankRecords 数组)
mbk
- the MulBlankRecord to convert
(mbk - 要转换的 MulBlankRecord)
BlankRecords
(BlankRecords 的等效数组)
public static short[] getAllKnownRecordSIDs()
public static java.util.List<Record> createRecords(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.