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
-
Constructor Summary
ConstructorsConstructorDescriptionBlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, String bucket, String key, DataBlockUtils.VersionCheck versionCheck, long objectLen, int bufferSize) BlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, String bucket, String key, DataBlockUtils.VersionCheck versionCheck, long objectLen, int bufferSize, LedgerOffloaderStats offloaderStats, String managedLedgerName) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()longintread()intread(byte[] b, int off, int len) voidseek(long position) voidseekForward(long position) Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
BlobStoreBackedInputStreamImpl
public BlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, String bucket, String key, DataBlockUtils.VersionCheck versionCheck, long objectLen, int bufferSize) -
BlobStoreBackedInputStreamImpl
public BlobStoreBackedInputStreamImpl(org.jclouds.blobstore.BlobStore blobStore, String bucket, String key, DataBlockUtils.VersionCheck versionCheck, long objectLen, int bufferSize, LedgerOffloaderStats offloaderStats, String managedLedgerName)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
seek
public void seek(long position) - Specified by:
seekin classBackedInputStream
-
seekForward
- Specified by:
seekForwardin classBackedInputStream- Throws:
IOException
-
getCurrentPosition
public long getCurrentPosition()- Specified by:
getCurrentPositionin classBackedInputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-