public class IndexRecord extends Record
Description: Occurs right after BOF, tells you where the DBCELL records are for a sheet Important for locating cells
NOT USED IN THIS RELEASE REFERENCE: PG 323 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
static int |
DBCELL_CAPACITY |
int |
field_1_zero |
int |
field_2_first_row |
int |
field_3_last_row_add1 |
int |
field_4_zero |
IntList |
field_5_dbcells |
static short |
sid |
Constructor and Description |
---|
IndexRecord() |
IndexRecord(RecordInputStream in)
Constructs an Index record and sets its fields appropriately.
|
Modifier and Type | Method and Description |
---|---|
void |
addDbcell(int cell) |
Object |
clone() |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
int |
getDbcellAt(int cellnum) |
int |
getFirstRow() |
int |
getLastRowAdd1() |
int |
getNumDbcells() |
int |
getRecordSize()
gives the current serialized size of the record.
|
static int |
getRecordSizeForBlockCount(int blockCount)
Returns the size of an INdexRecord when it needs to index the specified number of blocks
|
short |
getSid()
return the non static version of the id for this record.
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setDbcell(int cell,
int value) |
void |
setFirstRow(int row) |
void |
setLastRowAdd1(int row) |
String |
toString()
get a string representation of the record (for biffview/debugging)
|
protected void |
validateSid(short id)
called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
|
isInValueSection, isValue, serialize
public static final short sid
public static final int DBCELL_CAPACITY
public int field_1_zero
public int field_2_first_row
public int field_3_last_row_add1
public int field_4_zero
public IntList field_5_dbcells
public IndexRecord()
public IndexRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected void validateSid(short id)
Record
validateSid
in class Record
id
- alleged id for this recordprotected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic 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 String toString()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
Record
getRecordSize
in class Record
public static int getRecordSizeForBlockCount(int blockCount)
public short getSid()
Record
Copyright © 2015 Open Microscopy Environment