com.amazonaws.services.s3.transfer
Interface Download

All Superinterfaces:
Transfer

Deprecated. These classes have been deprecated, please use the classes in the com.amazonaws.mobileconnectors namespace.

public interface Download
extends Transfer

Represents an asynchronous download from Amazon S3.

See TransferManager for more information about creating transfers.

See Also:
TransferManager#download(com.amazonaws.services.s3.model.GetObjectRequest);

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.amazonaws.services.s3.transfer.Transfer
Transfer.TransferState
 
Method Summary
 void abort()
          Deprecated. Cancels this download.
 java.lang.String getBucketName()
          Deprecated. The name of the bucket where the object is being downloaded from.
 java.lang.String getKey()
          Deprecated. The key under which this object was stored in Amazon S3.
 ObjectMetadata getObjectMetadata()
          Deprecated. Returns the ObjectMetadata for the object being downloaded.
 PersistableDownload pause()
          Deprecated. Pause the current download operation and returns the information that can be used to resume the download at a later time.
 
Methods inherited from interface com.amazonaws.services.s3.transfer.Transfer
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForException
 

Method Detail

getObjectMetadata

ObjectMetadata getObjectMetadata()
Deprecated. 
Returns the ObjectMetadata for the object being downloaded.

Returns:
The ObjectMetadata for the object being downloaded.

getBucketName

java.lang.String getBucketName()
Deprecated. 
The name of the bucket where the object is being downloaded from.

Returns:
The name of the bucket where the object is being downloaded from.

getKey

java.lang.String getKey()
Deprecated. 
The key under which this object was stored in Amazon S3.

Returns:
The key under which this object was stored in Amazon S3.

abort

void abort()
           throws java.io.IOException
Deprecated. 
Cancels this download.

Throws:
java.io.IOException

pause

PersistableDownload pause()
                          throws PauseException
Deprecated. 
Pause the current download operation and returns the information that can be used to resume the download at a later time. Resuming a download would not perform ETag check as range get is performed for downloading the object's remaining contents. Resuming a download for an object encrypted using CryptoMode.StrictAuthenticatedEncryption would result in AmazonClientException as authenticity cannot be guaranteed for a range get operation.

Throws:
PauseException - If any errors were encountered while trying to pause the download.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.