Class BlobDownloadStreamOptions
java.lang.Object
com.azure.storage.blob.options.BlobDownloadStreamOptions
- All Implemented Interfaces:
com.azure.storage.common.ValidatableContent
public final class BlobDownloadStreamOptions
extends Object
implements com.azure.storage.common.ValidatableContent
Extended options that may be passed when downloading a blob range to an output stream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.common.ContentValidationAlgorithmGets the algorithm to use for transfer content validation on the response.Gets theDownloadRetryOptions.getRange()Gets theBlobRange.Gets theBlobRequestConditions.booleanGets whether the content MD5 for the specified blob range should be returned.setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the response.setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions) Sets theDownloadRetryOptions.Sets theBlobRange.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5) Sets whether the content MD5 for the specified blob range should be returned.
-
Constructor Details
-
BlobDownloadStreamOptions
public BlobDownloadStreamOptions()Creates a new instance ofBlobDownloadStreamOptions.
-
-
Method Details
-
getRange
-
setRange
Sets theBlobRange.- Parameters:
range- The blob range.- Returns:
- The updated options.
-
getDownloadRetryOptions
Gets theDownloadRetryOptions.- Returns:
- The download retry options.
-
setDownloadRetryOptions
Sets theDownloadRetryOptions.- Parameters:
downloadRetryOptions- The download retry options.- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
- The request conditions.
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions- The request conditions.- Returns:
- The updated options.
-
isRetrieveContentRangeMd5
public boolean isRetrieveContentRangeMd5()Gets whether the content MD5 for the specified blob range should be returned.- Returns:
- Whether to retrieve content range MD5.
-
setRetrieveContentRangeMd5
Sets whether the content MD5 for the specified blob range should be returned.- Parameters:
retrieveContentRangeMd5- Whether to retrieve content range MD5.- Returns:
- The updated options.
-
getContentValidationAlgorithm
public com.azure.storage.common.ContentValidationAlgorithm getContentValidationAlgorithm()Gets the algorithm to use for transfer content validation on the response. SeeContentValidationAlgorithmfor more details.- Specified by:
getContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Returns:
- The transfer validation checksum algorithm.
-
setContentValidationAlgorithm
public BlobDownloadStreamOptions setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the response. SeeContentValidationAlgorithmfor more details.- Specified by:
setContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Parameters:
contentValidationAlgorithm- The transfer validation checksum algorithm.- Returns:
- The updated options.
-