bos.close();
}
} else {
throw new IOException("Can not write " + ret);
}
progress.done(progressLabel);
return ret;
}
private static String downloadSpeed(long downloadStartedAt,long downloadSize) {
long timeUsed=(System.currentTimeMillis()-downloadStartedAt)/1000;