public class DownloadFileService extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DownloadFileService.DownloadResult |
| 构造器和说明 |
|---|
DownloadFileService(BtnClient btnClient,
BtnClientNetwork btnClientNetwork,
DownloadFileOption downloadFileOption) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
createFixedFile(String filePath,
long length) |
Result<DownloadFileService.DownloadResult> |
downloadFile(DownloadFileRequest downloadFileRequest) |
void |
listenDownloadFileProgress(String downloadFile,
IEventCallBack eventCallBack) |
Result<DownloadFileService.DownloadResult> |
localFileIntegrityVerify(DownloadFileRequest downloadFileRequest,
ArrayList<com.antchain.unionsdk.btn.api.service.DownloadFileService.DownloadPart> downloadParts,
com.antchain.unionsdk.btn.api.service.DownloadFileService.ObjectStat objectStat) |
boolean |
removeFile(String filePath) |
public DownloadFileService(BtnClient btnClient, BtnClientNetwork btnClientNetwork, DownloadFileOption downloadFileOption)
public Result<DownloadFileService.DownloadResult> downloadFile(DownloadFileRequest downloadFileRequest) throws Throwable
Throwablepublic Result<DownloadFileService.DownloadResult> localFileIntegrityVerify(DownloadFileRequest downloadFileRequest, ArrayList<com.antchain.unionsdk.btn.api.service.DownloadFileService.DownloadPart> downloadParts, com.antchain.unionsdk.btn.api.service.DownloadFileService.ObjectStat objectStat) throws Throwable
Throwablepublic static void createFixedFile(String filePath, long length) throws IOException
IOExceptionpublic boolean removeFile(String filePath)
public void listenDownloadFileProgress(String downloadFile, IEventCallBack eventCallBack)
Copyright © 2022. All rights reserved.