public interface Download extends Transfer
See TransferManager for more information about creating transfers.
Transfer.TransferState| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
Cancels this download.
|
String |
getBucketName()
The name of the bucket where the object is being downloaded from.
|
String |
getKey()
The key under which this object was stored in Qcloud COS.
|
ObjectMetadata |
getObjectMetadata()
Returns the ObjectMetadata for the object being downloaded.
|
PersistableDownload |
pause()
Pause the current download operation and returns the information that can
be used to resume the download at a later time.
|
addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, waitForExceptionObjectMetadata getObjectMetadata()
String getBucketName()
String getKey()
void abort()
throws IOException
IOExceptionPersistableDownload pause() throws PauseException
CryptoMode#StrictAuthenticatedEncryption would result in
CosClientException as authenticity cannot be guaranteed for a range
get operation.PauseException - If any errors were encountered while trying to pause the
download.Copyright © 2022. All rights reserved.