## 类 com.aliyun.oss.model.GetObjectRequest
的使用

- 使用GetObjectRequest的程序包
  程序包 | 说明
  --- | ---
  com.aliyun.oss |
  com.aliyun.oss.crypto |
  com.aliyun.oss.model |

- - ### com.aliyun.oss中GetObjectRequest的使用

    参数类型为GetObjectRequest的com.aliyun.oss中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `OSSObject` | OSSEncryptionClient.`getObject(GetObjectRequest req)`
    `OSSObject` | OSSClient.`getObject(GetObjectRequest getObjectRequest)`
    `OSSObject` | OSS.`getObject(GetObjectRequest getObjectRequest)` Gets the `OSSObject` from the bucket specified in `GetObjectRequest` parameter.
    `ObjectMetadata` | OSSEncryptionClient.`getObject(GetObjectRequest req, File file)`
    `ObjectMetadata` | OSSClient.`getObject(GetObjectRequest getObjectRequest, File file)`
    `ObjectMetadata` | OSS.`getObject(GetObjectRequest getObjectRequest, File file)` Downloads the file from a file specified by the `GetObjectRequest` parameter.

  - ### com.aliyun.oss.crypto中GetObjectRequest的使用

    参数类型为GetObjectRequest的com.aliyun.oss.crypto中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected OSSObject` | CryptoModuleBase.`decipherWithMetadata(GetObjectRequest req, long[] desiredRange, long[] cryptoRange, OSSObject retrieved)` Decrypt the encypted object by the metadata achieved.
    `OSSObject` | OSSDirect.`getObject(GetObjectRequest getObjectRequest)`
    `OSSObject` | CryptoModuleDispatcher.`getObjectSecurely(GetObjectRequest req)`
    `OSSObject` | CryptoModuleBase.`getObjectSecurely(GetObjectRequest req)` Gets the object in OSS, if it was an encrypted object then decrypt it and return the result, otherwise return the object directly.
    `OSSObject` | CryptoModule.`getObjectSecurely(GetObjectRequest req)`
    `ObjectMetadata` | CryptoModuleDispatcher.`getObjectSecurely(GetObjectRequest req, File file)`
    `ObjectMetadata` | CryptoModuleBase.`getObjectSecurely(GetObjectRequest getObjectRequest, File file)` Gets the object in OSS and write it in a file, if it was an encrypted object then decrypt it, otherwise wirte the object directly.
    `ObjectMetadata` | CryptoModule.`getObjectSecurely(GetObjectRequest req, File file)`

  - ### com.aliyun.oss.model中GetObjectRequest的使用

    com.aliyun.oss.model中GetObjectRequest的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `SelectObjectRequest` This is the request class that is used to select an object from OSS.

    返回GetObjectRequest的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `GetObjectRequest` | GetObjectRequest.`withRange(long start, long end)` Sets the range of the object to download and return current GetObjectRequest instance (this).

Copyright © 2020. All Rights Reserved.