@ThreadSafe public class OSSPositionReader extends ObjectPositionReader
ObjectPositionReader
that reads from OSS object store.Modifier and Type | Field and Description |
---|---|
protected com.aliyun.oss.OSS |
mClient
Client for operations with Aliyun OSS.
|
mBucketName, mFileLength, mPath
Constructor and Description |
---|
OSSPositionReader(com.aliyun.oss.OSS client,
String bucketName,
String path,
long fileLength) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
openObjectInputStream(long position,
int bytesToRead) |
readInternal
protected final com.aliyun.oss.OSS 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.