Method | Description | |
---|---|---|
BlockDownloader ( |
A simple constructor that initializes the object with the given values.
|
|
Start ( ) : void |
Starts the file download. After a block has finished downloading, a new block will be requested for download. this will continue until no blocks are left, or told to stop. |
|
Stop ( ) : void |
Instructs the downloader to stop.
|
Method | Description | |
---|---|---|
DoStart ( ) : void |
This method gets the next block to download, and downloads it. This loops until there are no more blocks, or we are told to stop. This method is run on a thread. |
|
DownloadBlock ( Range p_rngBlockToDownload ) : void |
Downloads the specified block.
|
|
FileWriter_UnableToWrite ( object sender, |
Handles the FileWriter.UnableToWrite events of the FileWriters being used. This stops the file download once all the FileWriters have finished. |
public BlockDownloader ( |
||
p_fdrFileDownloader | The |
|
p_fmdInfo | The metadata of the to be downloaded. | |
p_fwrWriter | FileWriter | The writer to use to write the file to the disk. |
p_intBufferSize | The size of the buffer to send to the file writer. | |
p_strUserAgent | string | The current User Agent. |
return | System |