public abstract class RecordAggregate extends RecordBase
Modifier and Type | Class and Description |
---|---|
static class |
RecordAggregate.PositionTrackingVisitor
A wrapper for
RecordAggregate.RecordVisitor which accumulates the sizes of all records visited.
(RecordAggregate.RecordVisitor 的包装器,它累积所有访问记录的大小。)
|
static interface |
RecordAggregate.RecordVisitor |
Constructor and Description |
---|
RecordAggregate() |
Modifier and Type | Method and Description |
---|---|
int |
getRecordSize()
gives the current serialized size of the record.
(给出记录的当前序列化大小.)
|
int |
serialize(int offset, byte[] data)
called by the class that is responsible for writing this sucker.
(由负责编写此傻瓜的类调用。)
|
abstract void |
visitContainedRecords(RecordAggregate.RecordVisitor rv)
Visit each of the atomic BIFF records contained in this
RecordAggregate in the order that they should be written to file.
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。)
|
public abstract void visitContainedRecords(RecordAggregate.RecordVisitor rv)
RecordAggregate
in the order that they should be written to file. Implementors may or may not return the actual
Record
s being used to manage POI's internal implementation. Callers should not assume either way, and therefore only attempt to modify those
Record
s after cloning
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。实施者可能会或可能不会返回用于管理 POI 内部实施的实际记录。调用者不应采取任何一种方式,因此仅在克隆后尝试修改这些记录)
rv
- The visitor to use for callbacks while walking this object
(rv - 访问此对象时用于回调的访问者)
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 - 包含实例数据的字节数组)
public int getRecordSize()
RecordBase
getRecordSize
in class
RecordBase
(类 RecordBase 中的 getRecordSize)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.