程序包 | 说明 |
---|---|
com.sinacloud.scs.services.scs | |
com.sinacloud.scs.services.scs.model |
Classes modeling the various types represented by Amazon S3.
|
com.sinacloud.scs.services.scs.transfer |
Transfer management.
|
限定符和类型 | 方法和说明 |
---|---|
S3Object |
SCS.getObject(GetObjectRequest getObjectRequest)
Gets the object stored in SCS under the specified bucket and
key.
|
S3Object |
SCSClient.getObject(GetObjectRequest getObjectRequest) |
ObjectMetadata |
SCS.getObject(GetObjectRequest getObjectRequest,
File destinationFile)
Gets the object metadata for the object stored
in SCS under the specified bucket and key,
and saves the object contents to the
specified file.
|
ObjectMetadata |
SCSClient.getObject(GetObjectRequest getObjectRequest,
File destinationFile) |
限定符和类型 | 方法和说明 |
---|---|
GetObjectRequest |
GetObjectRequest.withBucketName(String bucketName)
Sets the name of the bucket containing the object to be downloaded.
|
GetObjectRequest |
GetObjectRequest.withGeneralProgressListener(ProgressListener progressListener)
Sets the optional progress listener for receiving updates about object
download status, and returns this updated object so that additional method
calls can be chained together.
|
GetObjectRequest |
GetObjectRequest.withKey(String key)
Sets the key under which the object to be downloaded is stored.
|
GetObjectRequest |
GetObjectRequest.withMatchingETagConstraint(String eTag)
Sets a single ETag constraint to this request.
|
GetObjectRequest |
GetObjectRequest.withModifiedSinceConstraint(Date date)
Sets the optional modified constraint that restricts this request
to executing only if the object has been modified after the
specified date.
|
GetObjectRequest |
GetObjectRequest.withNonmatchingETagConstraint(String eTag)
Sets a single ETag constraint to this request.
|
GetObjectRequest |
GetObjectRequest.withProgressListener(ProgressListener progressListener)
已过时。
use
withGeneralProgressListener(ProgressListener)
instead. |
GetObjectRequest |
GetObjectRequest.withRange(long start,
long end)
Sets the optional inclusive byte range within the desired object that
will be downloaded by this request.
|
GetObjectRequest |
GetObjectRequest.withResponseHeaders(ResponseHeaderOverrides responseHeaders)
Sets the headers to be overridden in the service response and returns
this object, for method chaining.
|
GetObjectRequest |
GetObjectRequest.withUnmodifiedSinceConstraint(Date date)
Sets the optional unmodified constraint that restricts this request
to executing only if the object has not been modified after
the specified date.
|
GetObjectRequest |
GetObjectRequest.withVersionId(String versionId)
Sets the optional version ID specifying which version of the object to
download and returns this object, enabling additional method calls to be
chained together.
|
限定符和类型 | 方法和说明 |
---|---|
Download |
TransferManager.download(GetObjectRequest getObjectRequest,
File file)
Schedules a new transfer to download data from Amazon S3 and save it to
the specified file.
|
Copyright © 2016. All rights reserved.