public static boolean isMPEGFrame(ByteBuffer bb){
  int position=bb.position();
  return (((bb.get(position) & SYNC_BYTE1) == SYNC_BYTE1) && ((bb.get(position + 1) & SYNC_BYTE2) == SYNC_BYTE2) && ((bb.get(position + 2) & SYNC_BIT_ANDSAMPING_BYTE3) != SYNC_BIT_ANDSAMPING_BYTE3));
}

public static boolean isMPEGFrame ( ByteBuffer bb ) { int position = bb . position ( ) ; return ( ( ( bb . get ( position ) & SYNC_BYTE1 ) == SYNC_BYTE1 ) && ( ( bb . get ( position + 1 ) & SYNC_BYTE2 ) == SYNC_BYTE2 ) && ( ( bb . get ( position + 2 ) & SYNC_BIT_ANDSAMPING_BYTE3 ) != SYNC_BIT_ANDSAMPING_BYTE3 ) ) ; }
gets the mpegframe attribute of the mpegframe object
