BlobInputStream Class

public final class BlobInputStream
extends StorageInputStream

Provides an input stream to read a given blob resource.

Method Summary

Modifier and Type Method and Description
protected synchronized ByteBuffer dispatchRead(int readLength, long offset)

Dispatches a read operation of N bytes.

BlobProperties getProperties()

Gets the blob properties as fetched upon download.

Methods inherited from StorageInputStream

Methods inherited from java.io.InputStream

Methods inherited from java.lang.Object

Method Details

dispatchRead

protected synchronized ByteBuffer dispatchRead(int readLength, long offset)

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.

Overrides:

BlobInputStream.dispatchRead(int readLength, long offset)

Parameters:

readLength - An int which represents the number of bytes to read.
offset

Throws:

IOException

- If an I/O error occurs.

getProperties

public BlobProperties getProperties()

Gets the blob properties as fetched upon download.

Returns:

Applies to