Class BlobInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public final class BlobInputStream extends StorageInputStream
Provides an input stream to read a given blob resource.
  • Method Details

    • dispatchRead

      protected ByteBuffer dispatchRead(int readLength, long offset) throws IOException
      Dispatches a read operation of N bytes. When using sparse page blobs, the page ranges are evaluated and zero bytes may be generated on the client side for some ranges that do not exist.
      Specified by:
      dispatchRead in class StorageInputStream
      readLength - An int which represents the number of bytes to read.
      IOException - If an I/O error occurs.
    • getProperties

      public BlobProperties getProperties()
      Gets the blob properties as fetched upon download.