public class MultipleFileDownloadImpl extends MultipleFileTransfer<Download> implements MultipleFileDownload
Transfer.TransferStatesubTransferslistenerChain, monitor, state, stateChangeListeners| 构造器和说明 |
|---|
MultipleFileDownloadImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
String keyPrefix,
String bucketName,
Collection<? extends Download> downloads) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
Aborts all outstanding downloads.
|
String |
getBucketName()
Returns the name of the bucket from which files are downloaded.
|
String |
getKeyPrefix()
Returns the key prefix of the virtual directory being downloaded.
|
void |
waitForCompletion()
Waits for this transfer to complete.
|
collateFinalState, setStateaddProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, unwrapExecutionException, waitForExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForExceptionpublic MultipleFileDownloadImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, String keyPrefix, String bucketName, Collection<? extends Download> downloads)
public String getKeyPrefix()
getKeyPrefix 在接口中 MultipleFileDownloadpublic String getBucketName()
getBucketName 在接口中 MultipleFileDownloadpublic void waitForCompletion()
throws CosClientException,
CosServiceException,
InterruptedException
waitForCompletion 在接口中 TransferwaitForCompletion 在类中 AbstractTransferCosClientException - If any errors were encountered in the client while making the
request or handling the response.CosServiceException - If any errors occurred in Qcloud COS while processing the
request.InterruptedException - If this thread is interrupted while waiting for the transfer
to complete.public void abort()
throws IOException
abort 在接口中 MultipleFileDownloadIOExceptionCopyright © 2020. All rights reserved.