Class BlobStoreBackedInputStreamImpl
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.bookkeeper.mledger.offload.jcloud.BackedInputStream
-
- org.apache.bookkeeper.mledger.offload.jcloud.impl.BlobStoreBackedInputStreamImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class BlobStoreBackedInputStreamImpl extends BackedInputStream
-
-
Constructor Summary
Constructors Constructor Description BlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, String bucket, String key, DataBlockUtils.VersionCheck versionCheck, long objectLen, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()intread(byte[] b, int off, int len)voidseek(long position)voidseekForward(long position)-
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
-
-
-
-
Constructor Detail
-
BlobStoreBackedInputStreamImpl
public BlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, String bucket, String key, DataBlockUtils.VersionCheck versionCheck, long objectLen, int bufferSize)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
seek
public void seek(long position)
- Specified by:
seekin classBackedInputStream
-
seekForward
public void seekForward(long position) throws IOException- Specified by:
seekForwardin classBackedInputStream- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
-