jxl.write.biff
Class DBCellRecord
java.lang.Object
|
+--jxl.biff.RecordData
|
+--jxl.biff.WritableRecordData
|
+--jxl.write.biff.DBCellRecord
- All Implemented Interfaces:
- ByteData
- class DBCellRecord
- extends WritableRecordData
Indexes the first row record of the block and each individual cell.
This is invoked by the sheets write process
Field Summary |
private int |
cellOffset
The position of the start of the next cell after the first row. |
private java.util.ArrayList |
cellRowPositions
The list of all cell positions in this block |
private int |
position
The position of this record in the file. |
private int |
rowPos
The file position of the first Row record in this block |
Method Summary |
(package private) void |
addCellRowPosition(int pos)
Adds a cell |
protected byte[] |
getData()
Gets the binary data for this cell record |
(package private) void |
setCellOffset(int pos)
Sets the offset of this cell record within the sheet stream |
(package private) void |
setPosition(int pos)
Sets the position of this cell within the sheet stream |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
rowPos
private int rowPos
- The file position of the first Row record in this block
cellOffset
private int cellOffset
- The position of the start of the next cell after the first row. This
is used as the offset for the cell positions
cellRowPositions
private java.util.ArrayList cellRowPositions
- The list of all cell positions in this block
position
private int position
- The position of this record in the file. Vital for calculating offsets
DBCellRecord
public DBCellRecord(int rp)
- Constructor
- Parameters:
rp
- the position of this row
setCellOffset
void setCellOffset(int pos)
- Sets the offset of this cell record within the sheet stream
- Parameters:
pos
- the offset
addCellRowPosition
void addCellRowPosition(int pos)
- Adds a cell
- Parameters:
pos
-
setPosition
void setPosition(int pos)
- Sets the position of this cell within the sheet stream
- Parameters:
pos
- the position
getData
protected byte[] getData()
- Gets the binary data for this cell record
- Overrides:
getData
in class WritableRecordData
- Returns:
- the binary data