public final class IndexRecord extends StandardRecord implements java.lang.Cloneable
Description: Occurs right after BOF, tells you where the DBCELL records are for a sheet Important for locating cells
REFERENCE: PG 323 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
IndexRecord() |
IndexRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
addDbcell(int cell) |
IndexRecord |
clone() |
protected int |
getDataSize() |
int |
getDbcellAt(int cellnum) |
int |
getFirstRow() |
int |
getLastRowAdd1() |
int |
getNumDbcells() |
static int |
getRecordSizeForBlockCount(int blockCount) |
short |
getSid()
return the non static version of the id for this record.
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setDbcell(int cell,
int value) |
void |
setFirstRow(int row) |
void |
setLastRowAdd1(int row) |
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
cloneViaReserialise, serialize
public static final short sid
public IndexRecord()
public IndexRecord(RecordInputStream in)
public void setFirstRow(int row)
public void setLastRowAdd1(int row)
public void addDbcell(int cell)
public void setDbcell(int cell, int value)
public int getFirstRow()
public int getLastRowAdd1()
public int getNumDbcells()
public int getDbcellAt(int cellnum)
public java.lang.String toString()
Record
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()
} minus four
( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written
by their superclass).
serialize
in class StandardRecord
out
- the output objectprotected int getDataSize()
getDataSize
in class StandardRecord
public static int getRecordSizeForBlockCount(int blockCount)
blockCount
- the number of blocks to be indexedpublic short getSid()
Record
public IndexRecord clone()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.