private void displayMessageOnMonitor(){
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append("File ");
  stringBuilder.append(filesCount + 1);
  stringBuilder.append('/');
  stringBuilder.append(files.size());
  stringBuilder.append(" (");
  stringBuilder.append(NumberFormatter.humanReadableByteCount(totalBytesTransfered));
  if (!gzipCompression) {
    stringBuilder.append(" out of ");
    stringBuilder.append(NumberFormatter.humanReadableByteCount(totalSize));
  }
  stringBuilder.append(" @ ");
  stringBuilder.append(NumberFormatter.humanReadableByteCount((long)getAverageTransferRate()));
  stringBuilder.append("/s) Remaining time: ");
  if (gzipCompression) {
    stringBuilder.append("app. ");
  }
  long quasiBytesLeft=totalSize - finishedFilesSize;
  if (currentFileReal < currentFileSize) {
    quasiBytesLeft-=currentFileReal;
  }
 else {
    quasiBytesLeft-=currentFileSize;
  }
  long millisLeft=getMillisLeft(quasiBytesLeft);
  millisLeft+=millisLeft % 1000;
  stringBuilder.append(NumberFormatter.humanReadableMillisCount(millisLeft,true));
  subMonitor.subTask(stringBuilder.toString());
}

private void displayMessageOnMonitor ( ) { StringBuilder stringBuilder = new StringBuilder ( ) ; stringBuilder . append ( "File " ) ; stringBuilder . append ( filesCount + 1 ) ; stringBuilder . append ( '/' ) ; stringBuilder . append ( files . size ( ) ) ; stringBuilder . append ( " (" ) ; stringBuilder . append ( NumberFormatter . humanReadableByteCount ( totalBytesTransfered ) ) ; if ( ! gzipCompression ) { stringBuilder . append ( " out of " ) ; stringBuilder . append ( NumberFormatter . humanReadableByteCount ( totalSize ) ) ; } stringBuilder . append ( " @ " ) ; stringBuilder . append ( NumberFormatter . humanReadableByteCount ( ( long ) getAverageTransferRate ( ) ) ) ; stringBuilder . append ( "/s) Remaining time: " ) ; if ( gzipCompression ) { stringBuilder . append ( "app. " ) ; } long quasiBytesLeft = totalSize - finishedFilesSize ; if ( currentFileReal < currentFileSize ) { quasiBytesLeft -= currentFileReal ; } else { quasiBytesLeft -= currentFileSize ; } long millisLeft = getMillisLeft ( quasiBytesLeft ) ; millisLeft += millisLeft % 1000 ; stringBuilder . append ( NumberFormatter . humanReadableMillisCount ( millisLeft , true ) ) ; subMonitor . subTask ( stringBuilder . toString ( ) ) ; }
displays the current state on monitor .
