byte[] getData() {
if (!initialized)
{
initialize();
}
byte[] data = new byte[0];
for (Iterator i = children.iterator(); i.hasNext();)
{
EscherRecord er = (EscherRecord) i.next();
byte[] childData = er.getData();
if (childData != null)
{
byte[] newData = new byte[data.length + childData.length];
System.arraycopy(data, 0, newData, 0, data.length);
System.arraycopy(childData, 0, newData, data.length, childData.length);
data = newData;
}
}
return setHeaderData(data);
}
Gets the data for this container (and all of its children recursively |