public abstract class SharedValueRecordBase extends StandardRecord
SharedFormulaRecord
,
ArrayRecord
and
TableRecord
which are have similarities.
(SharedFormulaRecord、ArrayRecord 和 TableRecord 的通用基类有相似之处。)
Modifier | Constructor and Description |
---|---|
protected |
SharedValueRecordBase() |
protected |
SharedValueRecordBase(CellRangeAddress8Bit range) |
|
SharedValueRecordBase(LittleEndianInput in)
reads only the range (1
CellRangeAddress8Bit ) from the stream
(仅从流中读取范围 (1 CellRangeAddress8Bit))
|
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.
(写入此 BIFF 记录的数据内容。)
|
protected abstract void |
serializeExtraData(LittleEndianOutput out) |
copy, getRecordSize, serialize
cloneViaReserialise, getGenericRecordType, getSid, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericProperties
protected SharedValueRecordBase(SharedValueRecordBase other)
protected SharedValueRecordBase(CellRangeAddress8Bit range)
protected SharedValueRecordBase()
public SharedValueRecordBase(LittleEndianInput in)
CellRangeAddress8Bit
) from the stream
(仅从流中读取范围 (1 CellRangeAddress8Bit))
in
- The interface for reading the record data.
(in - 读取记录数据的接口。)
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
(类 StandardRecord 中的 getDataSize)
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
(在 StandardRecord 类中序列化)
out
- the output object
(out - 输出对象)
public final boolean isInRange(int rowIx, int colIx)
rowIx
- the row index
(rowIx - 行索引)
colIx
- the column index
(colIx - 列索引)
true
if (rowIx, colIx) is within the range of this shared value object.
(如果 (rowIx, colIx) 在此共享值对象的范围内,则为 true。)
getRange()
public final boolean isFirstCell(int rowIx, int colIx)
rowIx
- the row index
(rowIx - 行索引)
colIx
- the column index
(colIx - 列索引)
true
if (rowIx, colIx) describes the first cell in this shared value object's range
(如果 (rowIx, colIx) 描述此共享值对象范围内的第一个单元格,则为 true)
getRange()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.