void write(DataOutput dos) throws IOException { for (Tag tag : tags.values()) { Tag.writeNamedTag(tag, dos); } dos.writeByte(Tag.TAG_End); }