public abstract class StandardRecord extends Record
Modifier | Constructor and Description |
---|---|
protected |
StandardRecord() |
protected |
StandardRecord(StandardRecord other) |
Modifier and Type | Method and Description |
---|---|
abstract StandardRecord |
copy() |
protected abstract int |
getDataSize() |
int |
getRecordSize()
gives the current serialized size of the record.
(给出记录的当前序列化大小.)
|
int |
serialize(int offset, byte[] data)
Write the data content of this BIFF record including the sid and record length.
(写入该 BIFF 记录的数据内容,包括 sid 和记录长度。)
|
protected abstract void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
cloneViaReserialise, getGenericRecordType, getSid, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericProperties
protected StandardRecord()
protected StandardRecord(StandardRecord other)
protected abstract int getDataSize()
public final int getRecordSize()
RecordBase
getRecordSize
in class
RecordBase
(类 RecordBase 中的 getRecordSize)
public final int serialize(int offset, byte[] data)
The subclass must write the exact number of bytes as reported by RecordBase.getRecordSize()
}
serialize
in class
RecordBase
(在类 RecordBase 中序列化)
offset
- to begin writing at
(偏移量 - 开始写入)
data
- byte array containing instance data
(data - 包含实例数据的字节数组)
protected abstract void serialize(LittleEndianOutput out)
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).
out
- the output object
(out - 输出对象)
public abstract StandardRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
Record
(复制课堂记录)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.