public abstract class AbstractEscherHolderRecord extends Record
Constructor and Description |
---|
AbstractEscherHolderRecord() |
AbstractEscherHolderRecord(AbstractEscherHolderRecord other) |
AbstractEscherHolderRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
boolean |
addEscherRecord(EscherRecord element) |
void |
addEscherRecord(int index, EscherRecord element) |
void |
clearEscherRecords() |
protected void |
convertRawBytesToEscherRecords() |
abstract AbstractEscherHolderRecord |
copy() |
void |
decode()
Convert raw data to escher records.
(将原始数据转换为 escher 记录。)
|
EscherRecord |
findFirstWithId(short id)
Descends into all our children, returning the first EscherRecord with the given id, or null if none found
(下降到我们所有的孩子,返回具有给定 id 的第一个 EscherRecord,如果没有找到则返回 null)
|
EscherContainerRecord |
getEscherContainer()
If we have a EscherContainerRecord as one of our children (and most top level escher holders do), then return that.
(如果我们有一个 EscherContainerRecord 作为我们的孩子之一(大多数顶级 escher 持有者都有),然后返回它。)
|
EscherRecord |
getEscherRecord(int index) |
java.util.List<EscherRecord> |
getEscherRecords() |
java.util.List<EscherRecord> |
getGenericChildren() |
byte[] |
getRawData() |
protected abstract java.lang.String |
getRecordName() |
int |
getRecordSize()
gives the current serialized size of the record.
(给出记录的当前序列化大小.)
|
abstract short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
void |
join(AbstractEscherHolderRecord record)
Big drawing group records are split but it's easier to deal with them as a whole group so we need to join them together.
(大绘图组记录被拆分,但作为一个整体处理它们更容易,因此我们需要将它们连接在一起。)
|
void |
processContinueRecord(byte[] record) |
int |
serialize(int offset, byte[] data)
called by the class that is responsible for writing this sucker.
(由负责编写此傻瓜的类调用。)
|
void |
setRawData(byte[] rawData) |
cloneViaReserialise, getGenericRecordType, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericProperties
public AbstractEscherHolderRecord()
public AbstractEscherHolderRecord(AbstractEscherHolderRecord other)
public AbstractEscherHolderRecord(RecordInputStream in)
protected void convertRawBytesToEscherRecords()
protected abstract java.lang.String getRecordName()
public 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)
public abstract short getSid()
Record
public abstract AbstractEscherHolderRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
Record
(复制课堂记录)
public void addEscherRecord(int index, EscherRecord element)
public boolean addEscherRecord(EscherRecord element)
public java.util.List<EscherRecord> getEscherRecords()
public void clearEscherRecords()
public EscherContainerRecord getEscherContainer()
null
if no child is a container record
(如果没有子项是容器记录,则 EscherContainerRecord 或 null)
public EscherRecord findFirstWithId(short id)
id
- the record to look for
(id - 要查找的记录)
null
if it can't be found
(如果找不到记录,则返回 null)
public EscherRecord getEscherRecord(int index)
public void join(AbstractEscherHolderRecord record)
record
- the record data to concatenate to the end
(record - 要连接到末尾的记录数据)
public void processContinueRecord(byte[] record)
public byte[] getRawData()
public void setRawData(byte[] rawData)
public void decode()
public java.util.List<EscherRecord> getGenericChildren()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.