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:
java.io.Closeable,java.lang.AutoCloseable
public class BlobStoreBackedInputStreamImpl extends BackedInputStream
-
-
Constructor Summary
Constructors Constructor Description BlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, java.lang.String bucket, java.lang.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)
-
-
-
Constructor Detail
-
BlobStoreBackedInputStreamImpl
public BlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, java.lang.String bucket, java.lang.String key, DataBlockUtils.VersionCheck versionCheck, long objectLen, int bufferSize)
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
seek
public void seek(long position)
- Specified by:
seekin classBackedInputStream
-
seekForward
public void seekForward(long position) throws java.io.IOException- Specified by:
seekForwardin classBackedInputStream- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
-