jxl.write.biff
Class IndexRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.write.biff.IndexRecord
All Implemented Interfaces:
ByteData

class IndexRecord
extends WritableRecordData

Index into the cell rows in an worksheet


Field Summary
private  int blocks
          The number of blocks needed to hold all the rows
private  int bofPosition
          The position of the BOF record in the excel output stream
private  byte[] data
          The binary data
private  int dataPos
          The position of the current 'pointer' within the byte array
private  int rows
          The numbe of rows served by this index record
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
IndexRecord(int pos, int r, int bl)
          Constructor
 
Method Summary
(package private)  void addBlockPosition(int pos)
          Adds another index record into the array
protected  byte[] getData()
          Gets the binary data for output.
(package private)  void setDataStartPosition(int pos)
          Sets the position of the data start.
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

data

private byte[] data
The binary data

rows

private int rows
The numbe of rows served by this index record

bofPosition

private int bofPosition
The position of the BOF record in the excel output stream

blocks

private int blocks
The number of blocks needed to hold all the rows

dataPos

private int dataPos
The position of the current 'pointer' within the byte array
Constructor Detail

IndexRecord

public IndexRecord(int pos,
                   int r,
                   int bl)
Constructor
Parameters:
pos - the position of the BOF record
bl - the number of blocks
r - the number of rows
Method Detail

getData

protected byte[] getData()
Gets the binary data for output. This writes out an empty data block, and the information is filled in later on when the information becomes available
Overrides:
getData in class WritableRecordData
Returns:
the binary data

addBlockPosition

void addBlockPosition(int pos)
Adds another index record into the array
Parameters:
pos - the position in the output file

setDataStartPosition

void setDataStartPosition(int pos)
Sets the position of the data start. This happens to be the position of the DEFCOLWIDTH record