public interface Download extends Transfer
See TransferManager for more information about creating transfers.
TransferManager#download(com.amazonaws.services.s3.model.GetObjectRequest);Transfer.TransferState| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Cancels this download.
|
java.lang.String |
getBucketName()
The name of the bucket where the object is being downloaded from.
|
java.lang.String |
getKey()
The key under which this object was stored in Amazon S3.
|
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, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForExceptionObjectMetadata getObjectMetadata()
java.lang.String getBucketName()
java.lang.String getKey()
void abort()
throws java.io.IOException
java.io.IOExceptionPersistableDownload pause() throws PauseException
CryptoMode.StrictAuthenticatedEncryption would result in
AmazonClientException as authenticity cannot be guaranteed for a range
get operation.PauseException - If any errors were encountered while trying to pause the
download.