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

DummyRecordWithChildren

public class DummyRecordWithChildren extends RecordContainer
If we come across a record we know has children of (potential) interest, but where the record itself is boring, we create one of these. It allows us to get at the children, but not much else
author
Nick Burch

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

		// 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);