public final class PersistPtrHolder extends PositionDependentRecordAtom
Modifier | Constructor and Description |
---|---|
protected |
PersistPtrHolder(byte[] source, int start, int len)
Create a new holder for a PersistPtr record
(为 PersistPtr 记录创建新的持有者)
|
Modifier and Type | Method and Description |
---|---|
void |
addSlideLookup(int slideID, int posOnDisk)
Adds a new slide, notes or similar, to be looked up by this.
(添加一张新幻灯片、注释或类似内容,以供查找。)
|
void |
clear()
remove all slide references Convenience method provided, for easier reviewing of invocations
(删除所有幻灯片引用 提供方便的方法,以便更轻松地查看调用)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int[] |
getKnownSlideIDs()
Get the list of slides that this PersistPtrHolder knows about.
(获取此 PersistPtrHolder 知道的幻灯片列表。)
|
long |
getRecordType()
Return the value we were given at creation, be it 6001 or 6002
(返回我们在创建时给出的值,无论是 6001 还是 6002)
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getSlideLocationsLookup()
Get the lookup from slide numbers to byte offsets, for the slides known about by this PersistPtrHolder.
(对于此 PersistPtrHolder 已知的幻灯片,获取从幻灯片编号到字节偏移的查找。)
|
void |
updateOtherRecordReferences(java.util.Map<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
At write-out time, update the references to the sheets to their new positions
(在写出时,将对工作表的引用更新到新位置)
|
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
(将记录的内容写回去,这样就可以写入磁盘了)
|
getLastOnDiskOffset, setLastOnDiskOffset
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
protected PersistPtrHolder(byte[] source, int start, int len)
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public int[] getKnownSlideIDs()
public java.util.Map<java.lang.Integer,java.lang.Integer> getSlideLocationsLookup()
public void clear()
public void addSlideLookup(int slideID, int posOnDisk)
public void updateOtherRecordReferences(java.util.Map<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
updateOtherRecordReferences
in interface
PositionDependentRecord
(接口 PositionDependentRecord 中的 updateOtherRecordReferences)
updateOtherRecordReferences
in class
PositionDependentRecordAtom
(类 PositionDependentRecordAtom 中的 updateOtherRecordReferences)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.