@ThreadSafe public class COSPositionReader extends ObjectPositionReader
ObjectPositionReader that reads from COS object store.| Modifier and Type | Field and Description |
|---|---|
protected com.qcloud.cos.COSClient |
mClient
Client for operations with COS.
|
mBucketName, mFileLength, mPath| Constructor and Description |
|---|
COSPositionReader(com.qcloud.cos.COSClient client,
java.lang.String bucketName,
java.lang.String path,
long fileLength) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.InputStream |
openObjectInputStream(long position,
int bytesToRead) |
readInternalprotected final com.qcloud.cos.COSClient mClient
public COSPositionReader(com.qcloud.cos.COSClient client,
java.lang.String bucketName,
java.lang.String path,
long fileLength)
client - the Tencent COS clientbucketName - the bucket namepath - the file pathfileLength - the file lengthprotected java.io.InputStream openObjectInputStream(long position,
int bytesToRead)
throws java.io.IOException
openObjectInputStream in class ObjectPositionReaderjava.io.IOExceptionCopyright © 2024. All Rights Reserved.