Package 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.StandardRecord
org.apache.poi.hssf.record.SharedValueRecordBase
- Direct Known Subclasses:
ArrayRecord,SharedFormulaRecord,TableRecord
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedreads only the range (1CellRangeAddress8Bit) from the stream -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected abstract intfinal intfinal intfinal intfinal intfinal CellRangeAddress8BitgetRange()final booleanisFirstCell(int rowIx, int colIx) final booleanisInRange(int rowIx, int colIx) voidWrite the data content of this BIFF record.protected abstract voidMethods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serialize
-
Constructor Details
-
SharedValueRecordBase
-
SharedValueRecordBase
protected SharedValueRecordBase() -
SharedValueRecordBase
reads only the range (1CellRangeAddress8Bit) from the stream- Parameters:
in- The interface for reading the record data.
-
-
Method Details
-
getRange
- Returns:
- the range of cells that this record is shared across. Never
null.
-
getFirstRow
public final int getFirstRow() -
getLastRow
public final int getLastRow() -
getFirstColumn
public final int getFirstColumn() -
getLastColumn
public final int getLastColumn() -
getDataSize
protected int getDataSize()- Specified by:
getDataSizein classStandardRecord
-
getExtraDataSize
protected abstract int getExtraDataSize() -
serializeExtraData
-
serialize
Description copied from class:StandardRecordWrite the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).- Specified by:
serializein classStandardRecord- Parameters:
out- the output object
-
isInRange
public final boolean isInRange(int rowIx, int colIx) - Parameters:
rowIx- the row indexcolIx- the column index- Returns:
trueif (rowIx, colIx) is within the range of this shared value object.- See Also:
-
isFirstCell
public final boolean isFirstCell(int rowIx, int colIx) - Parameters:
rowIx- the row indexcolIx- the column index- Returns:
trueif (rowIx, colIx) describes the first cell in this shared value object's range- See Also:
-