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 |
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.
|
java.lang.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
public DBCellRecord()
public DBCellRecord(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 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 java.lang.String toString()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
Record
getRecordSize
in class Record
public static int getRecordSizeForRows(int rows)
public short getSid()
Record
public boolean isInValueSection()
Record
isInValueSection
in class Record
Copyright © 2014 Open Microscopy Environment