Class OffloadIndexBlock.IndexInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.bookkeeper.mledger.offload.jcloud.OffloadIndexBlock.IndexInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing interface:
OffloadIndexBlock

public static class OffloadIndexBlock.IndexInputStream extends FilterInputStream
An input stream which knows the size of the stream upfront.
  • Constructor Details

    • IndexInputStream

      public IndexInputStream(InputStream in, long streamSize)
  • Method Details

    • getStreamSize

      public long getStreamSize()
      Returns:
      the number of bytes in the stream.