public abstract class ContinuableRecord extends Record
ContinueRecord
s while being serialized.
(在被序列化时可以产生 ContinueRecords 的所有记录的公共超类。)
Modifier | Constructor and Description |
---|---|
protected |
ContinuableRecord() |
protected |
ContinuableRecord(ContinuableRecord other) |
Modifier and Type | Method and Description |
---|---|
int |
getRecordSize()
gives the current serialized size of the record.
(给出记录的当前序列化大小.)
|
protected abstract void |
serialize(ContinuableRecordOutput out)
Serializes this record's content to the supplied data output.
(将此记录的内容序列化为提供的数据输出。)
|
int |
serialize(int offset, byte[] data)
called by the class that is responsible for writing this sucker.
(由负责编写此傻瓜的类调用。)
|
cloneViaReserialise, copy, getGenericRecordType, getSid, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericProperties
protected ContinuableRecord()
protected ContinuableRecord(ContinuableRecord other)
protected abstract void serialize(ContinuableRecordOutput out)
The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so only BIFF data should be written by this method. Simple data types can be written with the standard LittleEndianOutput
methods. Methods from ContinuableRecordOutput
can be used to serialize strings (with ContinueRecord
s being written as required). If necessary, implementors can explicitly start ContinueRecord
s (regardless of the amount of remaining space).
out
- a data output stream
(out - 数据输出流)
public final int getRecordSize()
RecordBase
getRecordSize
in class
RecordBase
(类 RecordBase 中的 getRecordSize)
ContinueRecord
is required, this result includes the size of those too)
(编码记录的总长度(注意 - 如果需要任何 ContinueRecord,此结果也包括这些记录的大小))
public final int serialize(int offset, byte[] data)
RecordBase
serialize
in class
RecordBase
(在类 RecordBase 中序列化)
offset
- to begin writing at
(偏移量 - 开始写入)
data
- byte array containing instance data
(data - 包含实例数据的字节数组)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.