@Override public void write(DataOutput out) throws IOException {
  out.writeLong(duration);
  out.writeInt(getLength());
  frame.write(out);
}

@ Override public void write ( DataOutput out ) throws IOException { out . writeLong ( duration ) ; out . writeInt ( getLength ( ) ) ; frame . write ( out ) ; }
write this datagram to a random access file or data output stream .
