public abstract class CellRecord extends StandardRecord implements CellValueRecordInterface
CellValueRecordInterface
). Subclasses are expected to manage the cell data values (of various types).
(所有单元格值记录的基类(CellValueRecordInterface 的实现者)。预计子类将管理单元格数据值(各种类型)。)
Modifier | Constructor and Description |
---|---|
protected |
CellRecord() |
protected |
CellRecord(CellRecord other) |
protected |
CellRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
abstract CellRecord |
copy() |
short |
getColumn() |
protected int |
getDataSize() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
protected abstract java.lang.String |
getRecordName()
Gets the debug info BIFF record type name (used by
Record.toString() .
(获取调试信息 BIFF 记录类型名称(由 Record.toString() 使用。)
|
int |
getRow() |
protected abstract int |
getValueDataSize() |
short |
getXFIndex()
get the index to the ExtendedFormat
(获取 ExtendedFormat 的索引)
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
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
(将索引设置为 ExtendedFormat)
|
getRecordSize, serialize
cloneViaReserialise, getGenericRecordType, getSid, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
protected CellRecord()
protected CellRecord(CellRecord other)
protected CellRecord(RecordInputStream in)
public final void setRow(int row)
setRow
in interface
CellValueRecordInterface
(接口 CellValueRecordInterface 中的 setRow)
row
- the row this cell occurs within
(row - 此单元格所在的行)
public final void setColumn(short col)
setColumn
in interface
CellValueRecordInterface
(接口 CellValueRecordInterface 中的 setColumn)
col
- the column this cell defines
(col - 此单元格定义的列)
public final void setXFIndex(short xf)
setXFIndex
in interface
CellValueRecordInterface
(接口 CellValueRecordInterface 中的 setXFIndex)
xf
- index to the XF record
(xf - XF 记录的索引)
ExtendedFormatRecord
public final int getRow()
getRow
in interface
CellValueRecordInterface
(接口 CellValueRecordInterface 中的 getRow)
public final short getColumn()
getColumn
in interface
CellValueRecordInterface
(接口 CellValueRecordInterface 中的 getColumn)
public final short getXFIndex()
getXFIndex
in interface
CellValueRecordInterface
(接口 CellValueRecordInterface 中的 getXFIndex)
ExtendedFormatRecord
protected abstract java.lang.String getRecordName()
Record.toString()
.
(获取调试信息 BIFF 记录类型名称(由 Record.toString() 使用。)
protected abstract void serializeValue(LittleEndianOutput out)
out
- the output
(out - 输出)
protected abstract int getValueDataSize()
public final 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 - 输出对象)
protected final int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
public abstract CellRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.