FileDocCategorySizeDatePackage
PositionDependentRecordContainer.javaAPI DocApache Poi 3.0.12314Mon Jan 01 18:55:34 GMT 2007org.apache.poi.hslf.record

PositionDependentRecordContainer

public abstract class PositionDependentRecordContainer extends RecordContainer implements PositionDependentRecord
A special (and dangerous) kind of Record Container, for which other Atoms care about where this one lives on disk. Will track its position on disk.
author
Nick Burch

Fields Summary
private int
sheetId
protected int
myLastOnDiskOffset
Our location on the disk, as of the last write out
Constructors Summary
Methods Summary
public intgetLastOnDiskOffset()
Fetch our location on the disk, as of the last write out

 return myLastOnDiskOffset; 
public intgetSheetId()
Fetch our sheet ID, as found from a PersistPtrHolder. Should match the RefId of our matching SlidePersistAtom

 return sheetId; 
public voidsetLastOnDiskOffset(int offset)
Update the Record's idea of where on disk it lives, after a write out. Use with care...

 
		myLastOnDiskOffset = offset;
	
public voidsetSheetId(int id)
Set our sheet ID, as found from a PersistPtrHolder

 sheetId = id; 
public voidupdateOtherRecordReferences(java.util.Hashtable oldToNewReferencesLookup)
Since we're a container, we don't mind if other records move about. If we're told they have, just return straight off.

		return;