public final class RecordFactory
extends java.lang.Object
Description: Takes a stream and outputs an array of Record objects.
EventRecordFactory
Modifier and Type | Method and Description |
---|---|
static BlankRecord[] |
convertBlankRecords(MulBlankRecord mbk)
Converts a
MulBlankRecord into an equivalent array of BlankRecords |
static NumberRecord[] |
convertRKRecords(MulRKRecord mrk)
Converts a
MulRKRecord into an equivalent array of NumberRecords |
static NumberRecord |
convertToNumberRecord(RKRecord rk)
RK record is a slightly smaller alternative to NumberRecord
POI likes NumberRecord better
|
static Record[] |
createRecord(RecordInputStream in)
create a record, if there are MUL records than multiple records
are returned digested into the non-mul form.
|
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 sidsid
.
null
if the specified record is not interpreted by POI.public static Record[] createRecord(RecordInputStream in)
in
- the RecordInputStream to read frompublic static Record createSingleRecord(RecordInputStream in)
public static NumberRecord convertToNumberRecord(RKRecord rk)
rk
- the RK record to convertpublic static NumberRecord[] convertRKRecords(MulRKRecord mrk)
MulRKRecord
into an equivalent array of NumberRecords
mrk
- the MulRKRecord to convertNumberRecords
public static BlankRecord[] convertBlankRecords(MulBlankRecord mbk)
MulBlankRecord
into an equivalent array of BlankRecords
mbk
- the MulBlankRecord to convertBlankRecords
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 obtainedRecordFormatException
- on error processing the InputStreamCopyright 2021 The Apache Software Foundation or its licensors, as applicable.