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

DummyPositionSensitiveRecordWithChildren

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

Fields Summary
private byte[]
_header
private long
_type
Constructors Summary
protected DummyPositionSensitiveRecordWithChildren(byte[] source, int start, int len)
Create a new holder for a boring record with children, but with position dependent characteristics

		// Just grab the header, not the whole contents
		_header = new byte[8];
		System.arraycopy(source,start,_header,0,8);
		_type = LittleEndian.getUShort(_header,2);

		// Find our children
		_children = Record.findChildRecords(source,start+8,len-8);
	
Methods Summary
public longgetRecordType()
Return the value we were given at creation

 return _type; 
public voidwriteOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk

		writeOut(_header[0],_header[1],_type,_children,out);