BlobInputStream Class
- java.
lang. Object - java.
io. InputStream - com.
azure. storage. common. StorageInputStream - com.
azure. storage. blob. specialized. BlobInputStream
- com.
- com.
- java.
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
Byte |
dispatchRead(int readLength, long offset)
Dispatches a read operation of N bytes. |
Blob |
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:
int
which represents the number of bytes to read.
Throws:
getProperties
public BlobProperties getProperties()
Gets the blob properties as fetched upon download.
Returns:
Applies to
Azure SDK for Java