| Package | Description |
|---|---|
| com.amazonaws.mobileconnectors.s3.transferutility |
This package contains helper classes for managing upload and download tasks and a public
class
TransferUtility
which is a high level client that provides methods to control users' upload and download tasks. |
| Modifier and Type | Method and Description |
|---|---|
TransferObserver |
TransferUtility.download(String key,
File file)
Starts downloading the S3 object specified by the default bucket and
the key to the given file.
|
TransferObserver |
TransferUtility.download(String key,
File file,
TransferListener listener)
Starts downloading the S3 object specified by the default bucket and
the key to the given file.
|
TransferObserver |
TransferUtility.download(String bucket,
String key,
File file)
Starts downloading the S3 object specified by the bucket and the key to the
given file.
|
TransferObserver |
TransferUtility.download(String bucket,
String key,
File file,
TransferListener listener)
Starts downloading the S3 object specified by the bucket and the key to the
given file.
|
TransferObserver |
TransferUtility.getTransferById(int id)
Gets a TransferObserver instance to track the record with the given id.
|
TransferObserver |
TransferUtility.resume(int id)
Resumes the transfer task with the given id.
|
TransferObserver |
TransferUtility.upload(String key,
File file)
Starts uploading the file to the default bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String key,
File file,
CannedAccessControlList cannedAcl)
Starts uploading the file to the default bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String key,
File file,
ObjectMetadata metadata)
Starts uploading the file to the default bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String key,
File file,
ObjectMetadata metadata,
CannedAccessControlList cannedAcl)
Starts uploading the file to the default bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String key,
File file,
ObjectMetadata metadata,
CannedAccessControlList cannedAcl,
TransferListener listener)
Starts uploading the file to the default bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String bucket,
String key,
File file)
Starts uploading the file to the given bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String bucket,
String key,
File file,
CannedAccessControlList cannedAcl)
Starts uploading the file to the given bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String bucket,
String key,
File file,
ObjectMetadata metadata)
Starts uploading the file to the given bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String bucket,
String key,
File file,
ObjectMetadata metadata,
CannedAccessControlList cannedAcl)
Starts uploading the file to the given bucket, using the given key.
|
TransferObserver |
TransferUtility.upload(String bucket,
String key,
File file,
ObjectMetadata metadata,
CannedAccessControlList cannedAcl,
TransferListener listener)
Starts uploading the file to the given bucket, using the given key.
|
| Modifier and Type | Method and Description |
|---|---|
List<TransferObserver> |
TransferUtility.getTransfersWithType(TransferType type)
Gets a list of TransferObserver instances which are observing records with
the given type.
|
List<TransferObserver> |
TransferUtility.getTransfersWithTypeAndState(TransferType type,
TransferState state)
Gets a list of TransferObserver instances which are observing records with
the given type.
|
List<TransferObserver> |
TransferUtility.getTransfersWithTypeAndStates(TransferType type,
TransferState[] states)
Gets a list of TransferObserver instances which are observing records with
the given type.
|
List<TransferObserver> |
TransferUtility.resumeAllWithType(TransferType type)
Resume all the transfers which are not finished.
|
Copyright © 2020. All rights reserved.