public boolean isDone ( ) { return status == Status . cancelled || status == Status . error || status == Status . complete || status == Status . refused ; }
Returns true if the transfer has been cancelled if it has stopped because of a an error or the transfer completed successfully .