Downloader needs to be able to skip downloading. This can be done by setting
downloaded to the size in the processor or setting the status to FINALIZING in
the processor.
Setting downloaded:
The processor can set downloaded and downloader can check. If the size matches
it will not have to download. If the size is not set (-1) the downloader will
continue from downloaded.
Setting status:
Setting the status is an option but it should not be used. The Downloader
should always control the status of a download. In fact setStatus in Download
should probably be package only.
Allow the processor to set downloaded. The downloader needs to be smart enough
to check downloaded and either continue from where it left off or skip to
finalizing.
Original issue reported on code.google.com by moa...@gmail.com on 11 Jan 2013 at 12:35
Original issue reported on code.google.com by
moa...@gmail.com
on 11 Jan 2013 at 12:35