com.amazonaws.services.s3.transfer
Interface Download

All Superinterfaces:
Transfer

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()
          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 Amazon S3.
 ObjectMetadata getObjectMetadata()
          Returns the ObjectMetadata for the object being downloaded.
 
Methods inherited from interface com.amazonaws.services.s3.transfer.Transfer
addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, waitForException
 

Method Detail

getObjectMetadata

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

Returns:
The ObjectMetadata for the object being downloaded.

getBucketName

String getBucketName()
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

String getKey()
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 IOException
Cancels this download.

Throws:
IOException


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