Package | Description |
---|---|
com.netease.cloud.services.nos | |
com.netease.cloud.services.nos.model |
Classes modeling the various types represented by Nos.
|
com.netease.cloud.services.nos.transfer |
Modifier and Type | Method and Description |
---|---|
NOSObject |
Nos.getObject(GetObjectRequest getObjectRequest)
Gets the object stored in NOS under the specified bucket and key.
|
NOSObject |
NosClient.getObject(GetObjectRequest getObjectRequest) |
ObjectMetadata |
Nos.getObject(GetObjectRequest getObjectRequest,
File destinationFile)
Gets the object metadata for the object stored in NOS under the specified
bucket and key, and saves the object contents to the specified file.
|
ObjectMetadata |
NosClient.getObject(GetObjectRequest getObjectRequest,
File destinationFile) |
Modifier and Type | Method and Description |
---|---|
GetObjectRequest |
GetObjectRequest.withBucketName(String bucketName)
Sets the name of the bucket containing the object to be downloaded.
|
GetObjectRequest |
GetObjectRequest.withKey(String key)
Sets the key under which the object to be downloaded is stored.
|
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.withProgressListener(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.withRange(long start,
long end)
Sets the optional inclusive byte range within the desired object that
will be downloaded by this request.
|
Modifier and Type | Method and Description |
---|---|
Download |
TransferManager.download(GetObjectRequest getObjectRequest,
File file)
Schedules a new transfer to download data from Nos and save it to the
specified file.
|
Copyright © 2017. All Rights Reserved.