org.apache.poi.hssf.record
Class SharedFormulaRecord
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.SharedValueRecordBase
org.apache.poi.hssf.record.SharedFormulaRecord
public final class SharedFormulaRecord
- extends SharedValueRecordBase
Title: SHAREDFMLA (0x04BC) SharedFormulaRecord
Description: Primarily used as an excel optimization so that multiple similar formulas
are not written out too many times. We should recognize this record and
serialize as is since this is used when reading templates.
Note: the documentation says that the SID is BC where biffviewer reports 4BC. The hex dump shows
that the two byte sid representation to be 'BC 04' that is consistent with the other high byte
record types.
- Author:
- Danny Mui at apache dot org
Field Summary |
static short |
sid
|
Method Summary |
java.lang.Object |
clone()
|
void |
convertSharedFormulaRecord(FormulaRecord formula)
Creates a non shared formula from the shared formula
counter part |
protected static Ptg[] |
convertSharedFormulas(Ptg[] ptgs,
int formulaRow,
int formulaColumn)
Creates a non shared formula from the shared formula
counter part |
protected int |
getExtraDataSize()
|
short |
getSid()
return the non static version of the id for this record. |
protected void |
serializeExtraData(int offset,
byte[] data)
|
java.lang.String |
toString()
print a sort of string representation ([SHARED FORMULA RECORD] id = x [/SHARED FORMULA RECORD]) |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sid
public static final short sid
- See Also:
- Constant Field Values
SharedFormulaRecord
public SharedFormulaRecord()
SharedFormulaRecord
public SharedFormulaRecord(RecordInputStream in)
- Parameters:
in
- the RecordInputstream to read the record from
serializeExtraData
protected void serializeExtraData(int offset,
byte[] data)
- Specified by:
serializeExtraData
in class SharedValueRecordBase
getExtraDataSize
protected int getExtraDataSize()
- Specified by:
getExtraDataSize
in class SharedValueRecordBase
toString
public java.lang.String toString()
- print a sort of string representation ([SHARED FORMULA RECORD] id = x [/SHARED FORMULA RECORD])
- Overrides:
toString
in class Record
getSid
public short getSid()
- Description copied from class:
Record
- return the non static version of the id for this record.
- Specified by:
getSid
in class Record
convertSharedFormulas
protected static Ptg[] convertSharedFormulas(Ptg[] ptgs,
int formulaRow,
int formulaColumn)
- Creates a non shared formula from the shared formula
counter part
convertSharedFormulaRecord
public void convertSharedFormulaRecord(FormulaRecord formula)
- Creates a non shared formula from the shared formula
counter part
clone
public java.lang.Object clone()
- Overrides:
clone
in class Record
Copyright 2008 The Apache Software Foundation or
its licensors, as applicable.