public abstract class SharedValueRecordBase extends StandardRecord
Modifier | Constructor and Description |
---|---|
protected |
SharedValueRecordBase() |
protected |
SharedValueRecordBase(CellRangeAddress8Bit range) |
|
SharedValueRecordBase(LittleEndianInput in)
reads only the range (1
CellRangeAddress8Bit ) from the stream |
protected |
SharedValueRecordBase(SharedValueRecordBase other) |
Modifier and Type | Method and Description |
---|---|
protected int |
getDataSize() |
protected abstract int |
getExtraDataSize() |
int |
getFirstColumn() |
int |
getFirstRow() |
int |
getLastColumn() |
int |
getLastRow() |
CellRangeAddress8Bit |
getRange() |
boolean |
isFirstCell(int rowIx,
int colIx) |
boolean |
isInRange(int rowIx,
int colIx) |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
protected abstract void |
serializeExtraData(LittleEndianOutput out) |
copy, getRecordSize, serialize
cloneViaReserialise, getSid, serialize, toString
protected SharedValueRecordBase(SharedValueRecordBase other)
protected SharedValueRecordBase(CellRangeAddress8Bit range)
protected SharedValueRecordBase()
public SharedValueRecordBase(LittleEndianInput in)
CellRangeAddress8Bit
) from the streamin
- The interface for reading the record data.public final CellRangeAddress8Bit getRange()
null
.public final int getFirstRow()
public final int getLastRow()
public final int getFirstColumn()
public final int getLastColumn()
protected int getDataSize()
getDataSize
in class StandardRecord
protected abstract int getExtraDataSize()
protected abstract void serializeExtraData(LittleEndianOutput out)
public void serialize(LittleEndianOutput out)
StandardRecord
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).
serialize
in class StandardRecord
out
- the output objectpublic final boolean isInRange(int rowIx, int colIx)
rowIx
- the row indexcolIx
- the column indextrue
if (rowIx, colIx) is within the range of this shared value object.getRange()
public final boolean isFirstCell(int rowIx, int colIx)
rowIx
- the row indexcolIx
- the column indextrue
if (rowIx, colIx) describes the first cell in this shared value
object's rangegetRange()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.