moaxcp / download-magic

Automatically exported from code.google.com/p/project-penny
0 stars 0 forks source link

Allow Downloader to runInput for Finalizing #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When a download is finalizing the processor may need to run all of the input 
from a file. This is needed for md5er, linkParser, and wordParser. instead of 
doing each one individually the processor could just call downloaders run 
input. The only problem with that is downloaded and if it crashes downloaded 
will be wrong.

Add a method to Downloader that does the same thing but does not update 
downloaded and expose it as public

The processor needs an instance of the downloader to make the call.

When finalizing the processor can call the new method for each processor that 
was not previously run.

Original issue reported on code.google.com by moa...@gmail.com on 25 Jan 2013 at 10:27

GoogleCodeExporter commented 9 years ago

Original comment by moa...@gmail.com on 25 Jan 2013 at 10:28

GoogleCodeExporter commented 9 years ago
I am going to change this process.

The processor should have a copy of runInput that is very similar. It should 
update a variable that the progress bar will use instead of downloaded. 
doChunck will also update this variable. It will be in the Download Object. 
This variable will be updated When Initializing from a file and when 
downloading. When Finalizing if there is any processing it will be reset and 
used.

Original comment by moa...@gmail.com on 28 Jan 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Issue 80 has been merged into this issue.

Original comment by moa...@gmail.com on 28 Jan 2013 at 1:57