你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BlobDownloadAsyncResponse Class

Implements

public final class BlobDownloadAsyncResponse
extends ResponseBase<BlobDownloadHeaders,Flux<ByteBuffer>>
implements Closeable

This class contains the response information returned from the server when downloading a blob.

Constructor Summary

Constructor Description
BlobDownloadAsyncResponse(HttpRequest request, int statusCode, HttpHeaders headers, Flux<ByteBuffer> value, BlobDownloadHeaders deserializedHeaders)

Constructs a BlobDownloadAsyncResponse.

Method Summary

Modifier and Type Method and Description
void close()
Mono<Void> writeValueToAsync(AsynchronousByteChannel channel, ProgressReporter progressReporter)

Transfers content bytes to the AsynchronousByteChannel.

Methods inherited from ResponseBase

Methods inherited from java.lang.Object

Constructor Details

BlobDownloadAsyncResponse

public BlobDownloadAsyncResponse(HttpRequest request, int statusCode, HttpHeaders headers, Flux<ByteBuffer> value, BlobDownloadHeaders deserializedHeaders)

Constructs a BlobDownloadAsyncResponse.

Parameters:

request - Request sent to the service.
statusCode - Response status code returned by the service.
headers - Raw headers returned by the response.
value - Stream of download data being returned by the service.
deserializedHeaders - Headers deserialized into an object.

Method Details

close

public void close()

Throws:

writeValueToAsync

public Mono<Void> writeValueToAsync(AsynchronousByteChannel channel, ProgressReporter progressReporter)

Transfers content bytes to the AsynchronousByteChannel.

Parameters:

channel - The destination AsynchronousByteChannel.
progressReporter - Optional ProgressReporter.

Returns:

A Mono that completes when transfer is completed.

Applies to