public class DownloadImpl extends AbstractTransfer implements Download
Transfer.TransferState
monitor, progressListenerChain, progressListenerChainCallbackExecutor, state, stateChangeListeners
构造器和说明 |
---|
DownloadImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
S3Object s3Object,
TransferStateChangeListener listener) |
DownloadImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
S3Object s3Object,
TransferStateChangeListener listener)
|
限定符和类型 | 方法和说明 |
---|---|
void |
abort()
Cancels this download.
|
void |
abortWithoutNotifyingStateChangeListener()
Cancels this download, but skip notifying the state change listeners.
|
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.
|
void |
setS3Object(S3Object s3Object)
Set the S3 object to download.
|
void |
setState(Transfer.TransferState state)
This method is also responsible for firing COMPLETED signal to the
listeners.
|
addProgressListener, addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, unwrapExecutionException, waitForCompletion, waitForException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForException
public DownloadImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, S3Object s3Object, TransferStateChangeListener listener)
@Deprecated public DownloadImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, S3Object s3Object, TransferStateChangeListener listener)
public ObjectMetadata getObjectMetadata()
getObjectMetadata
在接口中 Download
public String getBucketName()
getBucketName
在接口中 Download
public String getKey()
public void abort() throws IOException
abort
在接口中 Download
IOException
public void abortWithoutNotifyingStateChangeListener() throws IOException
IOException
public void setS3Object(S3Object s3Object)
public void setState(Transfer.TransferState state)
setState
在类中 AbstractTransfer
Copyright © 2016. All rights reserved.