com.amazonaws.services.s3.transfer
Class Download

java.lang.Object
  extended by com.amazonaws.services.s3.transfer.Transfer
      extended by com.amazonaws.services.s3.transfer.Download

public class 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 class com.amazonaws.services.s3.transfer.Transfer
Transfer.TransferState
 
Constructor Summary
Download(String description, TransferProgress transferProgress, com.amazonaws.services.s3.transfer.internal.ProgressListenerChain progressListenerChain, S3Object s3Object)
           
 
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 class com.amazonaws.services.s3.transfer.Transfer
addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, waitForException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Download

public Download(String description,
                TransferProgress transferProgress,
                com.amazonaws.services.s3.transfer.internal.ProgressListenerChain progressListenerChain,
                S3Object s3Object)
Method Detail

getObjectMetadata

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

Returns:
The ObjectMetadata for the object being downloaded.

getBucketName

public 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

public 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

public void abort()
           throws IOException
Cancels this download.

Throws:
IOException


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