/** * Write the contents of the record back, so it can be written * to disk */ public void writeOut(OutputStream out) throws IOException { writeOut(_header[0],_header[1],_type,_children,out); } }
private StyleTextProp9Atom findInSpContainer(final EscherContainerRecord spContainer) { HSLFEscherClientDataRecord cldata = spContainer.getChildById(RecordTypes.EscherClientData.typeID); if (cldata == null) { return null; } DummyPositionSensitiveRecordWithChildren progTags = getChildRecord(cldata.getHSLFChildRecords(), RecordTypes.ProgTags); if (progTags == null) { return null; } DummyPositionSensitiveRecordWithChildren progBinaryTag = (DummyPositionSensitiveRecordWithChildren)progTags.findFirstOfType(RecordTypes.ProgBinaryTag.typeID); if (progBinaryTag == null) { return null; } int size = progBinaryTag.getChildRecords().length; if (2 != size) { return null; } final Record r0 = progBinaryTag.getChildRecords()[0]; final Record r1 = progBinaryTag.getChildRecords()[1]; if (!(r0 instanceof CString)) { return null; } if (!("___PPT9".equals(((CString) r0).getText()))) { return null; } if (!(r1 instanceof BinaryTagDataBlob )) { return null; } final BinaryTagDataBlob blob = (BinaryTagDataBlob) r1; if (1 != blob.getChildRecords().length) { return null; } return (StyleTextProp9Atom) blob.findFirstOfType(RecordTypes.StyleTextProp9Atom.typeID); }
/** * Write the contents of the record back, so it can be written * to disk */ public void writeOut(OutputStream out) throws IOException { writeOut(_header[0],_header[1],_type,_children,out); } }