Class OffloadIndexBlock.IndexInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing interface:
    OffloadIndexBlock

    public static class OffloadIndexBlock.IndexInputStream
    extends java.io.FilterInputStream
    An input stream which knows the size of the stream upfront.
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexInputStream​(java.io.InputStream in, long streamSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getStreamSize()  
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexInputStream

        public IndexInputStream​(java.io.InputStream in,
                                long streamSize)
    • Method Detail

      • getStreamSize

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