org.apache.poi.hslf.record
Class DummyPositionSensitiveRecordWithChildren

java.lang.Object
  extended by org.apache.poi.hslf.record.Record
      extended by org.apache.poi.hslf.record.RecordContainer
          extended by org.apache.poi.hslf.record.PositionDependentRecordContainer
              extended by org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren
All Implemented Interfaces:
PositionDependentRecord

public class DummyPositionSensitiveRecordWithChildren
extends PositionDependentRecordContainer

If we come across a record we know has children of (potential) interest, but where the record itself is boring, but where other records may care about where this one lives, we create one of these. It allows us to get at the children, and track where on disk this is, but not much else. Anything done using this should quite quickly be transitioned to its own proper record class!

Author:
Nick Burch

Field Summary
 
Fields inherited from class org.apache.poi.hslf.record.PositionDependentRecordContainer
myLastOnDiskOffset
 
Fields inherited from class org.apache.poi.hslf.record.RecordContainer
_children
 
Fields inherited from class org.apache.poi.hslf.record.Record
logger
 
Constructor Summary
protected DummyPositionSensitiveRecordWithChildren(byte[] source, int start, int len)
          Create a new holder for a boring record with children, but with position dependent characteristics
 
Method Summary
 long getRecordType()
          Return the value we were given at creation
 void writeOut(java.io.OutputStream out)
          Write the contents of the record back, so it can be written to disk
 
Methods inherited from class org.apache.poi.hslf.record.PositionDependentRecordContainer
getLastOnDiskOffset, getSheetId, setLastOnDiskOffset, setSheetId, updateOtherRecordReferences
 
Methods inherited from class org.apache.poi.hslf.record.RecordContainer
addChildAfter, addChildBefore, appendChildRecord, getChildRecords, isAnAtom, moveChildBefore, moveChildrenAfter, moveChildrenBefore, writeOut
 
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyPositionSensitiveRecordWithChildren

protected DummyPositionSensitiveRecordWithChildren(byte[] source,
                                                   int start,
                                                   int len)
Create a new holder for a boring record with children, but with position dependent characteristics

Method Detail

getRecordType

public long getRecordType()
Return the value we were given at creation

Specified by:
getRecordType in class Record

writeOut

public void writeOut(java.io.OutputStream out)
              throws java.io.IOException
Write the contents of the record back, so it can be written to disk

Specified by:
writeOut in class Record
Throws:
java.io.IOException


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