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

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

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

    返回OSSObject的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.
    `OSSObject` | OSSClient.`getObject(String bucketName, String key)`
    `OSSObject` | OSS.`getObject(String bucketName, String key)` Gets a `OSSObject` from `Bucket`.
    `OSSObject` | OSSClient.`getObject(URL signedUrl, Map<String,String> requestHeaders)`
    `OSSObject` | OSS.`getObject(URL signedUrl, Map<String,String> requestHeaders)` Gets the `OSSObject` from the signed Url.
    `OSSObject` | OSSClient.`getVodPlaylist(GetVodPlaylistRequest getVodPlaylistRequest)`
    `OSSObject` | OSS.`getVodPlaylist(GetVodPlaylistRequest getVodPlaylistRequest)` Generates and returns a VOD playlist (m3u8 format) for the *.ts files with specified time range under the Live Channel, but this VOD playlist would not be stored in OSS Server.
    `OSSObject` | OSSClient.`getVodPlaylist(String bucketName, String liveChannelName, long startTime, long endTime)`
    `OSSObject` | OSS.`getVodPlaylist(String bucketName, String liveChannelName, long startTime, long endTime)` Generates and returns a VOD playlist (m3u8 format) for the *.ts files with specified time range under the Live Channel, but this VOD playlist would not be stored in OSS Server.
    `OSSObject` | OSSClient.`selectObject(SelectObjectRequest selectObjectRequest)`
    `OSSObject` | OSS.`selectObject(SelectObjectRequest selectObjectRequest)` Select the `OSSObject` from the bucket specified in `SelectObjectRequest` parameter

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

    返回OSSObject的com.aliyun.oss.crypto中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected OSSObject` | CryptoModuleBase.`adjustToDesiredRange(OSSObject OSSobject, long[] range)` Adjusts the retrieved OSSObject so that the object contents contain only the range of bytes desired by the user.
    `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)`

    参数类型为OSSObject的com.aliyun.oss.crypto中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected OSSObject` | CryptoModuleBase.`adjustToDesiredRange(OSSObject OSSobject, long[] range)` Adjusts the retrieved OSSObject so that the object contents contain only the range of bytes desired by the user.
    `protected OSSObject` | CryptoModuleBase.`decipherWithMetadata(GetObjectRequest req, long[] desiredRange, long[] cryptoRange, OSSObject retrieved)` Decrypt the encypted object by the metadata achieved.

Copyright © 2020. All Rights Reserved.