*/
private void progress(long bytes) {
this.currentBytes += bytes;
for (Iterator<ProgressListener> i = listeners.iterator(); i.hasNext();) {
ProgressListener pl = i.next();
pl.onProgress(currentBytes, totalBytes);
}
}
/**
* Marks the current transfer as complete, closes the stream if required,