Class BlobInputStreamOptions

java.lang.Object
com.azure.storage.blob.options.BlobInputStreamOptions
All Implemented Interfaces:
com.azure.storage.common.ValidatableContent

public class BlobInputStreamOptions extends Object implements com.azure.storage.common.ValidatableContent
Extended options that may be passed when opening a blob input stream.
  • Constructor Details

  • Method Details

    • getRange

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

      public BlobInputStreamOptions setRange(BlobRange range)
      Sets the BlobRange.
      Parameters:
      range - BlobRange
      Returns:
      The updated options.
    • getRequestConditions

      public BlobRequestConditions getRequestConditions()
      Returns:
      BlobRequestConditions
    • setRequestConditions

      public BlobInputStreamOptions setRequestConditions(BlobRequestConditions requestConditions)
      Parameters:
      requestConditions - BlobRequestConditions
      Returns:
      The updated options.
    • getBlockSize

      public Integer getBlockSize()
      Gets the size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.
      Returns:
      The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.
    • setBlockSize

      public BlobInputStreamOptions setBlockSize(Integer blockSize)
      Sets the size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.
      Parameters:
      blockSize - The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.
      Returns:
      The updated options.
    • getConsistentReadControl

      public ConsistentReadControl getConsistentReadControl()
      Gets the ConsistentReadControl Default is E-Tag.
      Returns:
      ConsistentReadControl Default is E-Tag.
    • setConsistentReadControl

      public BlobInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)
      Sets the ConsistentReadControl Default is E-Tag.
      Parameters:
      consistentReadControl - ConsistentReadControl Default is E-Tag.
      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 BlobInputStreamOptions 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.