C# Class BiliRanking.Core.Download.DownloaderHelper

ファイルを表示 Open project: SkiTiSu/BiliRanking

Public Methods

Method Description
CheckFileOrCreateFile ( IDownloader downloader, object fileLocker ) : void

Check whether the destination file exists. If not, create a file with the same size as the file to be downloaded.

CheckUrl ( IDownloader downloader ) : string

Check the URL to download, including whether it supports Range,

InitializeHttpWebRequest ( IDownloader downloader ) : HttpWebRequest

Method Details

CheckFileOrCreateFile() public static method

Check whether the destination file exists. If not, create a file with the same size as the file to be downloaded.
public static CheckFileOrCreateFile ( IDownloader downloader, object fileLocker ) : void
downloader IDownloader
fileLocker object
return void

CheckUrl() public static method

Check the URL to download, including whether it supports Range,
public static CheckUrl ( IDownloader downloader ) : string
downloader IDownloader
return string

InitializeHttpWebRequest() public static method

public static InitializeHttpWebRequest ( IDownloader downloader ) : HttpWebRequest
downloader IDownloader
return System.Net.HttpWebRequest