Package com.azure.storage.blob.models
Class BlobDownloadAsyncResponse
java.lang.Object
com.azure.core.http.rest.ResponseBase<BlobDownloadHeaders,Flux<ByteBuffer>>
com.azure.storage.blob.models.BlobDownloadAsyncResponse
- All Implemented Interfaces:
com.azure.core.http.rest.Response<Flux<ByteBuffer>>
,Closeable
,AutoCloseable
public final class BlobDownloadAsyncResponse
extends com.azure.core.http.rest.ResponseBase<BlobDownloadHeaders,Flux<ByteBuffer>>
implements Closeable
This class contains the response information returned from the server when downloading a blob.
-
Constructor Summary
ConstructorDescriptionBlobDownloadAsyncResponse
(com.azure.core.http.HttpRequest request, int statusCode, com.azure.core.http.HttpHeaders headers, Flux<ByteBuffer> value, BlobDownloadHeaders deserializedHeaders) Constructs aBlobDownloadAsyncResponse
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
writeValueToAsync
(AsynchronousByteChannel channel, com.azure.core.util.ProgressReporter progressReporter) Transfers content bytes to theAsynchronousByteChannel
.Methods inherited from class com.azure.core.http.rest.ResponseBase
getDeserializedHeaders, getHeaders, getRequest, getStatusCode, getValue
-
Constructor Details
-
BlobDownloadAsyncResponse
public BlobDownloadAsyncResponse(com.azure.core.http.HttpRequest request, int statusCode, com.azure.core.http.HttpHeaders headers, Flux<ByteBuffer> value, BlobDownloadHeaders deserializedHeaders) Constructs aBlobDownloadAsyncResponse
.- 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
-
writeValueToAsync
public Mono<Void> writeValueToAsync(AsynchronousByteChannel channel, com.azure.core.util.ProgressReporter progressReporter) Transfers content bytes to theAsynchronousByteChannel
.- Parameters:
channel
- The destinationAsynchronousByteChannel
.progressReporter
- OptionalProgressReporter
.- Returns:
- A
Mono
that completes when transfer is completed.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-