PositionDependentRecord
public final class PersistPtrHolder extends PositionDependentRecordAtom
myLastOnDiskOffset
Modifier | Constructor | Description |
---|---|---|
protected |
PersistPtrHolder(byte[] source,
int start,
int len) |
Create a new holder for a PersistPtr record
|
Modifier and Type | Method | Description |
---|---|---|
void |
addSlideLookup(int slideID,
int posOnDisk) |
Adds a new slide, notes or similar, to be looked up by this.
|
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.Hashtable<java.lang.Integer,java.lang.Integer> |
getSlideLocationsLookup() |
Get the lookup from slide numbers to byte offsets, for the slides
known about by this PersistPtrHolder.
|
java.util.Hashtable<java.lang.Integer,java.lang.Integer> |
getSlideOffsetDataLocationsLookup() |
Get the lookup from slide numbers to their offsets inside
_ptrData, used when adding or moving slides.
|
void |
updateOtherRecordReferences(java.util.Hashtable<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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastOnDiskOffset, setLastOnDiskOffset
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
getChildRecords, isAnAtom
protected PersistPtrHolder(byte[] source, int start, int len)
public int[] getKnownSlideIDs()
public java.util.Hashtable<java.lang.Integer,java.lang.Integer> getSlideLocationsLookup()
public java.util.Hashtable<java.lang.Integer,java.lang.Integer> getSlideOffsetDataLocationsLookup()
public void addSlideLookup(int slideID, int posOnDisk)
public long getRecordType()
getRecordType
in class Record
public void updateOtherRecordReferences(java.util.Hashtable<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
updateOtherRecordReferences
in interface PositionDependentRecord
updateOtherRecordReferences
in class PositionDependentRecordAtom
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.