Package com.azure.storage.blob.options
Class BlobInputStreamOptions
java.lang.Object
com.azure.storage.blob.options.BlobInputStreamOptions
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 theConsistentReadControl
Default is E-Tag.getRange()
Gets theBlobRange
.Gets theBlobRequestConditions
.setBlockSize
(Integer blockSize) Sets the size of each data chunk returned from the service.setConsistentReadControl
(ConsistentReadControl consistentReadControl) Sets theConsistentReadControl
Default is E-Tag.Sets theBlobRange
.setRequestConditions
(BlobRequestConditions requestConditions) Sets theBlobRequestConditions
.
-
Constructor Details
-
BlobInputStreamOptions
public BlobInputStreamOptions()Creates a new instance ofBlobInputStreamOptions
.
-
-
Method Details
-
getRange
Gets theBlobRange
.- Returns:
BlobRange
-
setRange
Sets theBlobRange
.- Parameters:
range
-BlobRange
- Returns:
- The updated options.
-
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 theConsistentReadControl
Default is E-Tag.- Returns:
ConsistentReadControl
Default is E-Tag.
-
setConsistentReadControl
Sets theConsistentReadControl
Default is E-Tag.- Parameters:
consistentReadControl
-ConsistentReadControl
Default is E-Tag.- Returns:
- The updated options.
-