public interface EscherSerializationListener
Modifier and Type | Method and Description |
---|---|
void |
afterRecordSerialize(int offset, short recordId, int size, EscherRecord record)
Fired after a record has been serialized.
(在记录被序列化后触发。)
|
void |
beforeRecordSerialize(int offset, short recordId, EscherRecord record)
Fired before a given escher record is serialized.
(在给定的 escher 记录被序列化之前触发。)
|
void beforeRecordSerialize(int offset, short recordId, EscherRecord record)
offset
- The position in the data array at which the record will be serialized.
(offset - 数据数组中记录将被序列化的位置。)
recordId
- The id of the record about to be serialized.
(recordId - 即将被序列化的记录的 ID。)
record
- The record to be serialized
(record - 要序列化的记录)
void afterRecordSerialize(int offset, short recordId, int size, EscherRecord record)
offset
- The position of the end of the serialized record + 1
(offset - 序列化记录结束的位置 + 1)
recordId
- The id of the record about to be serialized
(recordId - 即将被序列化的记录的 id)
size
- The number of bytes written for this record. If it is a container record then this will include the size of any included records.
(size - 为此记录写入的字节数。如果它是一个容器记录,那么这将包括任何包含记录的大小。)
record
- The record which was serialized
(record - 被序列化的记录)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.