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
|
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.
|
long |
getRecordType()
Return the value we were given at creation, be it 6001 or 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.
|
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
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
updateOtherRecordReferences
in class PositionDependentRecordAtom
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.