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