CloudBlob.downloadRangeInternal(final long blobOffset, final Long length, final byte[] buffer, final int bufferOffset, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext) Method

Definition

Downloads a range of bytes from the blob to the given byte buffer.

protected final int downloadRangeInternal(final long blobOffset, final Long length, final byte[] buffer, final int bufferOffset, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
blobOffset
final long

A long which represents the offset within the blob to begin downloading.

length
final Long

A Long which represents the number of bytes to read.

buffer
final byte []

A byte array which represents the buffer to write to.

bufferOffset
final int

An int which represents the offset in the byte buffer to begin writing.

accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the blob.

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request.

opContext
OperationContext

An OperationContext object used to track the execution of the operation.

Returns
final int

The total number of bytes read into the buffer.

Exceptions

an exception representing any error which occurred during the operation.