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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the size of each data chunk returned from the service.Gets theConsistentReadControlDefault is E-Tag.com.azure.storage.common.ContentValidationAlgorithmGets the algorithm to use for transfer content validation on the response.getRange()Gets theBlobRange.Gets theBlobRequestConditions.setBlockSize(Integer blockSize) Sets the size of each data chunk returned from the service.setConsistentReadControl(ConsistentReadControl consistentReadControl) Sets theConsistentReadControlDefault is E-Tag.setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the response.Sets theBlobRange.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.
-
Constructor Details
-
BlobInputStreamOptions
public BlobInputStreamOptions()Creates a new instance ofBlobInputStreamOptions.
-
-
Method Details
-
getRange
-
setRange
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
BlobRequestConditions
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions-BlobRequestConditions- Returns:
- The updated options.
-
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
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
Gets theConsistentReadControlDefault is E-Tag.- Returns:
ConsistentReadControlDefault is E-Tag.
-
setConsistentReadControl
Sets theConsistentReadControlDefault is E-Tag.- Parameters:
consistentReadControl-ConsistentReadControlDefault 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. SeeContentValidationAlgorithmfor more details.- Specified by:
getContentValidationAlgorithmin interfacecom.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. SeeContentValidationAlgorithmfor more details.- Specified by:
setContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Parameters:
contentValidationAlgorithm- The transfer validation checksum algorithm.- Returns:
- The updated options.
-