public class DownloadFile extends Object
| 构造器和说明 |
|---|
DownloadFile() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
add(String seedName,
DownloadFile downloadFile)
先将要下载的大文件地址加入到待下载列表中
|
static void |
downloadBigFile(String seedName)
下载大文件
|
byte[] |
getContent() |
long |
getContentLength() |
String |
getFileName() |
String |
getSeedName() |
String |
getUrl() |
static boolean |
isExist(String seedName)
是否有大文件需要下载
|
DownloadFile |
setContent(byte[] content) |
DownloadFile |
setContentLength(long contentLength) |
DownloadFile |
setFileName(String fileName) |
DownloadFile |
setSeedName(String seedName) |
DownloadFile |
setUrl(String url) |
public static void add(String seedName, DownloadFile downloadFile)
seedName - 种子名称downloadFile - 下载文件对象public static boolean isExist(String seedName)
seedName - 种子名称public static void downloadBigFile(String seedName)
seedName - Stringpublic String getFileName()
public DownloadFile setFileName(String fileName)
public byte[] getContent()
public DownloadFile setContent(byte[] content)
public long getContentLength()
public DownloadFile setContentLength(long contentLength)
public DownloadFile setSeedName(String seedName)
public String getSeedName()
public String getUrl()
public DownloadFile setUrl(String url)
Copyright © 2018. All rights reserved.