org.apache.poi.hslf.record
Class PositionDependentRecordContainer

java.lang.Object
  extended byorg.apache.poi.hslf.record.Record
      extended byorg.apache.poi.hslf.record.RecordContainer
          extended byorg.apache.poi.hslf.record.PositionDependentRecordContainer
All Implemented Interfaces:
PositionDependentRecord
Direct Known Subclasses:
DummyPositionSensitiveRecordWithChildren, Notes, Slide

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

Field Summary
protected  int myLastOnDiskOffset
          Our location on the disk, as of the last write out
 
Constructor Summary
PositionDependentRecordContainer()
           
 
Method Summary
 int getLastOnDiskOffset()
          Fetch our location on the disk, as of the last write out
 void setLastOnDiskOffset(int offset)
          Update the Record's idea of where on disk it lives, after a write out.
 void updateOtherRecordReferences(java.util.Hashtable oldToNewReferencesLookup)
          Since we're a container, we don't mind if other records move about.
 
Methods inherited from class org.apache.poi.hslf.record.RecordContainer
isAnAtom, writeOut
 
Methods inherited from class org.apache.poi.hslf.record.Record
createRecordForType, findChildRecords, getChildRecords, getRecordType, writeLittleEndian, writeLittleEndian, writeOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myLastOnDiskOffset

protected int myLastOnDiskOffset
Our location on the disk, as of the last write out

Constructor Detail

PositionDependentRecordContainer

public PositionDependentRecordContainer()
Method Detail

getLastOnDiskOffset

public int getLastOnDiskOffset()
Fetch our location on the disk, as of the last write out

Specified by:
getLastOnDiskOffset in interface PositionDependentRecord

setLastOnDiskOffset

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

Specified by:
setLastOnDiskOffset in interface PositionDependentRecord

updateOtherRecordReferences

public void updateOtherRecordReferences(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.

Specified by:
updateOtherRecordReferences in interface PositionDependentRecord


Copyright 2005 The Apache Software Foundation or its licensors, as applicable.