public final class PersistPtrHolder extends PositionDependentRecordAtom
myLastOnDiskOffset| 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.
|
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
|
Hashtable<Integer,Integer> |
getSlideLocationsLookup()
Get the lookup from slide numbers to byte offsets, for the slides
known about by this PersistPtrHolder.
|
Hashtable<Integer,Integer> |
getSlideOffsetDataLocationsLookup()
Get the lookup from slide numbers to their offsets inside
_ptrData, used when adding or moving slides.
|
void |
updateOtherRecordReferences(Hashtable<Integer,Integer> oldToNewReferencesLookup)
At write-out time, update the references to the sheets to their
new positions
|
void |
writeOut(OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
getLastOnDiskOffset, setLastOnDiskOffsetgetChildRecords, isAnAtombuildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndianprotected PersistPtrHolder(byte[] source,
int start,
int len)
public int[] getKnownSlideIDs()
public Hashtable<Integer,Integer> getSlideLocationsLookup()
public Hashtable<Integer,Integer> getSlideOffsetDataLocationsLookup()
public void addSlideLookup(int slideID,
int posOnDisk)
public long getRecordType()
getRecordType in class Recordpublic void updateOtherRecordReferences(Hashtable<Integer,Integer> oldToNewReferencesLookup)
updateOtherRecordReferences in interface PositionDependentRecordupdateOtherRecordReferences in class PositionDependentRecordAtompublic void writeOut(OutputStream out) throws IOException
writeOut in class RecordIOExceptionCopyright © 2020. All rights reserved.