dos.writeBytes(getType());
dos.writeInt(getDataLength());
Debug.println("track: " + trackNumber + ": " + getDataLength());
for (int j = 0; j < track.size(); j++) {
SmafEvent event = track.get(j);
SmafMessage message = event.getMessage();
if (!SmafFileFormat.isIgnored(message)) {
byte[] data = message.getMessage();
dos.write(data, 0, data.length);
}
}