public class DBCellRecord extends Record
REFERENCE: PG 299/440 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
| Modifier and Type | Field and Description | 
|---|---|
| static int | BLOCK_SIZE | 
| private int | field_1_row_offset | 
| private short[] | field_2_cell_offsets | 
| static short | sid | 
| Constructor and Description | 
|---|
| DBCellRecord() | 
| DBCellRecord(RecordInputStream in)Constructs a DBCellRecord and sets its fields appropriately | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCellOffset(short offset) | 
| protected void | fillFields(RecordInputStream in)called by the constructor, should set class level fields. | 
| short | getCellOffsetAt(int index)return the cell offset in the array | 
| int | getNumCellOffsets()get the number of cell offsets in the celloffset array | 
| int | getRecordSize()gives the current serialized size of the record. | 
| static int | getRecordSizeForRows(int rows)Returns the size of a DBCellRecord when it needs to reference a certain number of rows | 
| int | getRowOffset()gets offset from the start of this DBCellRecord to the start of the first cell in
 the next DBCell block. | 
| short | getSid()return the non static version of the id for this record. | 
| boolean | isInValueSection()DBCELL, ROW, VALUES all say yes | 
| int | serialize(int offset,
         byte[] data)called by the class that is responsible for writing this sucker. | 
| void | setRowOffset(int offset)sets offset from the start of this DBCellRecord to the start of the first cell in
 the next DBCell block. | 
| 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. | 
public static final int BLOCK_SIZE
public static final short sid
private int field_1_row_offset
private short[] field_2_cell_offsets
public DBCellRecord()
public DBCellRecord(RecordInputStream in)
in - the RecordInputstream to read the record fromprotected void validateSid(short id)
RecordvalidateSid in class Recordid - alleged id for this recordprotected void fillFields(RecordInputStream in)
RecordfillFields in class Recordin - the RecordInputstream to read the record frompublic void setRowOffset(int offset)
offset - offset to the start of the first cell in the next DBCell blockpublic void addCellOffset(short offset)
public int getRowOffset()
public short getCellOffsetAt(int index)
index - of the cell offset to retrievepublic int getNumCellOffsets()
public String toString()
Recordpublic int serialize(int offset,
            byte[] data)
Recordpublic int getRecordSize()
RecordgetRecordSize in class Recordpublic static int getRecordSizeForRows(int rows)
public short getSid()
Recordpublic boolean isInValueSection()
RecordisInValueSection in class RecordCopyright © 2016 Open Microscopy Environment