|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.IndexRecord
public class IndexRecord
Title: Index 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)
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
IndexRecord()
|
|
IndexRecord(RecordInputStream in)
Constructs an Index record and sets its fields appropriately. |
|
| Method Summary | |
|---|---|
void |
addDbcell(int cell)
|
java.lang.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)
|
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. |
| Methods inherited from class org.apache.poi.hssf.record.Record |
|---|
cloneViaReserialise, isInValueSection, isValue, serialize |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public IndexRecord()
public IndexRecord(RecordInputStream in)
in - the RecordInputstream to read the record from| Method Detail |
|---|
protected void validateSid(short id)
Record
validateSid in class Recordid - alleged id for this recordprotected void fillFields(RecordInputStream in)
Record
fillFields in class Recordin - 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 java.lang.String toString()
Record
toString in class Record
public int serialize(int offset,
byte[] data)
Record
serialize in class Recordoffset - to begin writing atdata - byte array containing instance data
public int getRecordSize()
Record
getRecordSize in class Recordpublic static int getRecordSizeForBlockCount(int blockCount)
public short getSid()
Record
getSid in class Recordpublic java.lang.Object clone()
clone in class Record
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||