DummyRecordWithChildrenpublic 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 |
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 long | getRecordType()Return the value we were given at creation return _type;
| public void | writeOut(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);
|
|