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 Details

  • Method Details

    • getRange

      public BlobRange getRange()
      Gets the BlobRange.
      Returns:
      The blob range.
    • setRange

      public BlobDownloadStreamOptions setRange(BlobRange range)
      Sets the BlobRange.
      Parameters:
      range - The blob range.
      Returns:
      The updated options.
    • getDownloadRetryOptions

      public DownloadRetryOptions getDownloadRetryOptions()
      Returns:
      The download retry options.
    • setDownloadRetryOptions

      public BlobDownloadStreamOptions setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions)
      Parameters:
      downloadRetryOptions - The download retry options.
      Returns:
      The updated options.
    • getRequestConditions

      public BlobRequestConditions getRequestConditions()
      Returns:
      The request conditions.
    • setRequestConditions

      public BlobDownloadStreamOptions setRequestConditions(BlobRequestConditions requestConditions)
      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

      public BlobDownloadStreamOptions setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5)
      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. See ContentValidationAlgorithm for more details.
      Specified by:
      getContentValidationAlgorithm in interface com.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. See ContentValidationAlgorithm for more details.
      Specified by:
      setContentValidationAlgorithm in interface com.azure.storage.common.ValidatableContent
      Parameters:
      contentValidationAlgorithm - The transfer validation checksum algorithm.
      Returns:
      The updated options.