|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.record.RecordBase org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.StandardRecord org.apache.poi.hssf.record.CellRecord
public abstract class CellRecord
Base class for all cell value records (implementors of CellValueRecordInterface
).
Subclasses are expected to manage the cell data values (of various types).
Constructor Summary | |
---|---|
protected |
CellRecord()
|
protected |
CellRecord(RecordInputStream in)
|
Method Summary | |
---|---|
protected abstract void |
appendValueText(java.lang.StringBuilder sb)
Append specific debug info (used by toString() for the value
contained in this record. |
protected void |
copyBaseFields(CellRecord rec)
|
short |
getColumn()
|
protected int |
getDataSize()
|
protected abstract java.lang.String |
getRecordName()
Gets the debug info BIFF record type name (used by toString() . |
int |
getRow()
|
protected abstract int |
getValueDataSize()
|
short |
getXFIndex()
get the index to the ExtendedFormat |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record. |
protected abstract void |
serializeValue(LittleEndianOutput out)
writes out the value data for this cell record |
void |
setColumn(short col)
|
void |
setRow(int row)
|
void |
setXFIndex(short xf)
set the index to the ExtendedFormat |
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging) |
Methods inherited from class org.apache.poi.hssf.record.StandardRecord |
---|
getRecordSize, serialize |
Methods inherited from class org.apache.poi.hssf.record.Record |
---|
clone, cloneViaReserialise, getSid, serialize |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CellRecord()
protected CellRecord(RecordInputStream in)
Method Detail |
---|
public final void setRow(int row)
setRow
in interface CellValueRecordInterface
row
- the row this cell occurs withinpublic final void setColumn(short col)
setColumn
in interface CellValueRecordInterface
col
- the column this cell definespublic final void setXFIndex(short xf)
setXFIndex
in interface CellValueRecordInterface
xf
- index to the XF recordExtendedFormatRecord
public final int getRow()
getRow
in interface CellValueRecordInterface
public final short getColumn()
getColumn
in interface CellValueRecordInterface
public final short getXFIndex()
getXFIndex
in interface CellValueRecordInterface
ExtendedFormatRecord
public final java.lang.String toString()
Record
toString
in class Record
protected abstract void appendValueText(java.lang.StringBuilder sb)
toString()
for the value
contained in this record. Trailing new-line should not be appended
(superclass does that).
protected abstract java.lang.String getRecordName()
toString()
.
protected abstract void serializeValue(LittleEndianOutput out)
protected abstract int getValueDataSize()
public final void serialize(LittleEndianOutput out)
StandardRecord
RecordBase.getRecordSize()
} minus four
( record header consiting of a 'ushort sid' and 'ushort reclength' has already been written
by thye superclass).
serialize
in class StandardRecord
protected final int getDataSize()
getDataSize
in class StandardRecord
protected final void copyBaseFields(CellRecord rec)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |