@Override public void write(DataOutput out) throws IOException {
  out.writeLong(duration);
  out.writeInt(getLength());
  for (int i=0; i < quantizedCoeffs.length; i++) {
    out.writeShort(quantizedCoeffs[i]);
  }
  out.write(quantizedResidual);
}

@ Override public void write ( DataOutput out ) throws IOException { out . writeLong ( duration ) ; out . writeInt ( getLength ( ) ) ; for ( int i = 0 ; i < quantizedCoeffs . length ; i ++ ) { out . writeShort ( quantizedCoeffs [ i ] ) ; } out . write ( quantizedResidual ) ; }
write this datagram to a random access file or data output stream .
