@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,
String bucketName,
String path,
long fileLength) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
openObjectInputStream(long position,
int bytesToRead) |
readInternal
protected final com.qcloud.cos.COSClient mClient
protected InputStream openObjectInputStream(long position, int bytesToRead) throws IOException
openObjectInputStream
in class ObjectPositionReader
position
- position of the file to start reading databytesToRead
- bytes to readIOException
Copyright © 2023. All Rights Reserved.