private void updateStateAndNotifyListener ( DownloadState downloadState ) throws IOException { this . downloadState = downloadState ; if ( progressListener != null ) { progressListener . progressChanged ( this ) ; } }
Sets the download state and notifies the progress listener .