public interface Download extends AbortableTransfer
See TransferManager
for more information about creating transfers.
Transfer.TransferState
Modifier and Type | Method and Description |
---|---|
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 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.
|
abort
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForException
ObjectMetadata getObjectMetadata()
String getBucketName()
String getKey()
PersistableDownload 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.