| 程序包 | 说明 |
|---|---|
| com.qcloud.cos | |
| com.qcloud.cos.model | |
| com.qcloud.cos.transfer |
| 限定符和类型 | 方法和说明 |
|---|---|
CopyObjectResult |
COS.copyObject(CopyObjectRequest copyObjectRequest)
Copy a source object to a new destination in COS.
|
CopyObjectResult |
COSClient.copyObject(CopyObjectRequest copyObjectRequest) |
| 限定符和类型 | 方法和说明 |
|---|---|
CopyObjectRequest |
CopyObjectRequest.withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new object.
|
CopyObjectRequest |
CopyObjectRequest.withCannedAccessControlList(CannedAccessControlList cannedACL)
Sets the canned ACL to use for the newly copied object, and returns this
CopyObjectRequest, enabling additional method calls to be chained together. |
CopyObjectRequest |
CopyObjectRequest.withDestinationBucketName(String destinationBucketName)
Sets the name of the destination bucket which will contain the new, copied object and returns
this object, enabling additional method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withDestinationKey(String destinationKey)
Sets the destination bucket key under which the new, copied object will be stored and returns
this object, enabling additional method calls can be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withMatchingETagConstraint(String eTag)
Adds a single ETag constraint to this request and returns this object, enabling additional
method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withMetadataDirective(String metadataDirective)
Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.
|
CopyObjectRequest |
CopyObjectRequest.withModifiedSinceConstraint(Date date)
Sets the optional modified constraint that restricts this request to executing only if the
source object has been modified after the specified date.
|
CopyObjectRequest |
CopyObjectRequest.withNewObjectMetadata(ObjectMetadata newObjectMetadata)
Sets the object metadata to use for the new, copied object and returns this object, enabling
additional method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withNonmatchingETagConstraint(String eTag)
Adds a single ETag constraint to this request and returns this object, enabling additional
method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withRedirectLocation(String redirectLocation)
Sets the optional redirect location for the newly copied object.Returns this
CopyObjectRequest, enabling additional method calls to be chained together. |
CopyObjectRequest |
CopyObjectRequest.withSourceBucketName(String sourceBucketName)
Sets the name of the bucket containing the source object to be copied, and returns this
object, enabling additional method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withSourceKey(String sourceKey)
Sets the key in the source bucket under which the source object to be copied is stored and
returns this object, enabling additional method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withSourceVersionId(String sourceVersionId)
Sets the optional version ID specifying which version of the source object to copy and
returns this object, enabling additional method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withStorageClass(StorageClass storageClass)
Sets the optional Qcloud COS storage class to use when storing the newly copied object and
returns this CopyObjectRequest, enabling additional method calls to be chained together.
|
CopyObjectRequest |
CopyObjectRequest.withStorageClass(String storageClass)
Sets the optional Qcloud COS storage class to use when storing the newly copied object and
returns this
CopyObjectRequest, enabling additional method calls to be chained
together. |
CopyObjectRequest |
CopyObjectRequest.withUnmodifiedSinceConstraint(Date date)
Sets the optional unmodified constraint that restricts this request to executing only if the
source object has not been modified after the specified date.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
TransferManagerUtils.calculateOptimalPartSizeForCopy(CopyObjectRequest copyObjectRequest,
TransferManagerConfiguration configuration,
long contentLengthOfSource)
Calculates the optimal part size of each part request if the copy
operation is carried out as multi-part copy.
|
Copy |
TransferManager.copy(CopyObjectRequest copyObjectRequest)
Schedules a new transfer to copy data from one object to another .
|
Copy |
TransferManager.copy(CopyObjectRequest copyObjectRequest,
COS srcCOS,
TransferStateChangeListener stateChangeListener)
Schedules a new transfer to copy data from one object to another .
|
Copy |
TransferManager.copy(CopyObjectRequest copyObjectRequest,
TransferStateChangeListener stateChangeListener)
Schedules a new transfer to copy data from one object to another .
|
static CopyMonitor |
CopyMonitor.create(TransferManager manager,
CopyImpl transfer,
ExecutorService threadPool,
CopyCallable multipartCopyCallable,
CopyObjectRequest copyObjectRequest,
ProgressListenerChain progressListenerChain)
Constructs a new watcher for copy operation, and then immediately submits
it to the thread pool.
|
| 构造器和说明 |
|---|
CompleteMultipartCopy(String uploadId,
COS cos,
CopyObjectRequest copyObjectRequest,
List<Future<PartETag>> futures,
ProgressListenerChain progressListenerChain,
CopyMonitor monitor) |
CopyCallable(TransferManager transferManager,
ExecutorService threadPool,
CopyImpl copy,
CopyObjectRequest copyObjectRequest,
ObjectMetadata metadata,
ProgressListenerChain progressListenerChain) |
CopyPartRequestFactory(CopyObjectRequest origReq,
String uploadId,
long optimalPartSize,
long contentLength) |
Copyright © 2022. All rights reserved.