protected long skipNextDatagram(ByteBuffer bb) throws IOException {
  long datagramDuration=bb.getLong();
  int datagramSize=bb.getInt();
  if (bb.position() + datagramSize > bb.limit()) {
    throw new IOException("cannot skip datagram: it is not fully contained in byte buffer");
  }
  bb.position(bb.position() + datagramSize);
  return datagramDuration;
}

protected long skipNextDatagram ( ByteBuffer bb ) throws IOException { long datagramDuration = bb . getLong ( ) ; int datagramSize = bb . getInt ( ) ; if ( bb . position ( ) + datagramSize > bb . limit ( ) ) { throw new IOException ( "cannot skip datagram: it is not fully contained in byte buffer" ) ; } bb . position ( bb . position ( ) + datagramSize ) ; return datagramDuration ; }
skip the upcoming datagram at the current position of the byte buffer .
