CloudBlob.downloadRange Method

Definition

Overloads

downloadRange(final long offset, final Long length, final OutputStream outStream)

Downloads the contents of a blob to a stream.

downloadRange(final long offset, final Long length, final OutputStream outStream, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads the contents of a blob to a stream using the specified request options and operation context.

downloadRange(final long offset, final Long length, final OutputStream outStream)

Downloads the contents of a blob to a stream.

public final void downloadRange(final long offset, final Long length, final OutputStream outStream)
Parameters
offset
final long

A long which represents the offset to use as the starting point for the source.

length
final Long

A Long which represents the number of bytes to read or null.

outStream
final OutputStream

An OutputStream object that represents the target stream.

Returns
final void
Exceptions

If a storage service error occurred.

downloadRange(final long offset, final Long length, final OutputStream outStream, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Downloads the contents of a blob to a stream using the specified request options and operation context.

public final void downloadRange(final long offset, final Long length, final OutputStream outStream, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
offset
final long

A long which represents the offset to use as the starting point for the source.

length
final Long

A Long which represents the number of bytes to read or null.

outStream
final OutputStream

An OutputStream object that represents the target stream.

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. Specifying null will use the default request options from the associated service client ( CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
final void
Exceptions

If a storage service error occurred.