}
private void writeBox(IIOMetadataNode node) throws IOException {
int type = Box.getTypeInt((String)Box.getAttribute(node, "Type"));
int length = new Integer((String)Box.getAttribute(node, "Length")).intValue();
Box box = Box.createBox(type, node);
otherLength += length;
stream.writeInt(length);
stream.writeInt(type);
byte[] data = box.getContent();
stream.write(data, 0, data.length);
}