private void checkConnectivity() throws StopRequestException {
  final NetworkState networkUsable=networkChecker.checkCanUseNetwork(originalDownloadInfo);
  if (networkUsable != NetworkState.OK) {
    int status=DownloadStatus.WAITING_FOR_NETWORK;
    if (networkUsable == NetworkState.UNUSABLE_DUE_TO_SIZE) {
      status=DownloadStatus.QUEUED_FOR_WIFI;
      notifyPauseDueToSize(true);
    }
 else     if (networkUsable == NetworkState.RECOMMENDED_UNUSABLE_DUE_TO_SIZE) {
      status=DownloadStatus.QUEUED_FOR_WIFI;
      notifyPauseDueToSize(false);
    }
    throw new StopRequestException(status,networkUsable.name());
  }
}

private void checkConnectivity ( ) throws StopRequestException { final NetworkState networkUsable = networkChecker . checkCanUseNetwork ( originalDownloadInfo ) ; if ( networkUsable != NetworkState . OK ) { int status = DownloadStatus . WAITING_FOR_NETWORK ; if ( networkUsable == NetworkState . UNUSABLE_DUE_TO_SIZE ) { status = DownloadStatus . QUEUED_FOR_WIFI ; notifyPauseDueToSize ( true ) ; } else if ( networkUsable == NetworkState . RECOMMENDED_UNUSABLE_DUE_TO_SIZE ) { status = DownloadStatus . QUEUED_FOR_WIFI ; notifyPauseDueToSize ( false ) ; } throw new StopRequestException ( status , networkUsable . name ( ) ) ; } }
check if current connectivity is valid for this request .
