@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,
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.aliyun.oss.OSS mClient
public OSSPositionReader(com.aliyun.oss.OSS client,
java.lang.String bucketName,
java.lang.String path,
long fileLength)
client - the Aliyun OSS 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.