org.apache.poi.hssf.record
Class SharedValueRecordBase
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.SharedValueRecordBase
- Direct Known Subclasses:
- ArrayRecord, SharedFormulaRecord, TableRecord
public abstract class SharedValueRecordBase
- extends Record
Common base class for SharedFormulaRecord
, ArrayRecord
and
TableRecord
which are have similarities.
- Author:
- Josh Micich
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SharedValueRecordBase
protected SharedValueRecordBase(CellRangeAddress8Bit range)
SharedValueRecordBase
protected SharedValueRecordBase()
SharedValueRecordBase
public SharedValueRecordBase(RecordInputStream in)
- reads only the range (1
CellRangeAddress8Bit
) from the stream
getRange
public final CellRangeAddress8Bit getRange()
getFirstRow
public final int getFirstRow()
getLastRow
public final int getLastRow()
getFirstColumn
public final int getFirstColumn()
getLastColumn
public final int getLastColumn()
getRecordSize
public final int getRecordSize()
- Description copied from class:
Record
- gives the current serialized size of the record. Should include the sid and reclength (4 bytes).
- Overrides:
getRecordSize
in class Record
getExtraDataSize
protected abstract int getExtraDataSize()
serializeExtraData
protected abstract void serializeExtraData(int offset,
byte[] data)
serialize
public final int serialize(int offset,
byte[] data)
- Description copied from class:
RecordBase
- called by the class that is responsible for writing this sucker.
Subclasses should implement this so that their data is passed back in a
byte array.
- Specified by:
serialize
in class RecordBase
- Parameters:
offset
- to begin writing atdata
- byte array containing instance data
- Returns:
- number of bytes written
isInRange
public final boolean isInRange(int rowIx,
int colIx)
- Returns:
true
if (rowIx, colIx) is within the range (getRange()
)
of this shared value object.
isFirstCell
public final boolean isFirstCell(int rowIx,
int colIx)
- Returns:
true
if (rowIx, colIx) describes the first cell in this shared value
object's range (getRange()
)
Copyright 2008 The Apache Software Foundation or
its licensors, as applicable.