Class BlobDownloadToFileOptions
java.lang.Object
com.azure.storage.blob.options.BlobDownloadToFileOptions
Extended options that may be passed when downloading a blob to a file.
-
Constructor Summary
ConstructorsConstructorDescriptionBlobDownloadToFileOptions(String filePath) Constructs aBlobDownloadToFileOptions. -
Method Summary
Modifier and TypeMethodDescriptionGets theDownloadRetryOptions.Gets the path of the file to download to.Gets theOpenOptionsto use to configure how to open or create the file.com.azure.storage.common.ParallelTransferOptionsGets theParallelTransferOptions.getRange()Gets theBlobRange.Gets theBlobRequestConditions.booleanGets whether the contentMD5 for the specified blob range should be returned.setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions) Sets theDownloadRetryOptions.setOpenOptions(Set<OpenOption> openOptions) Sets theOpenOptionsto use to configure how to open or create the file.setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions.Sets theBlobRange.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5) Sets whether the contentMD5 for the specified blob range should be returned.
-
Constructor Details
-
BlobDownloadToFileOptions
Constructs aBlobDownloadToFileOptions.- Parameters:
filePath- Path of the file to download to.- Throws:
NullPointerException- IffilePathis null.
-
-
Method Details
-
getFilePath
Gets the path of the file to download to.- Returns:
- The path of the file to download to.
-
getRange
-
getParallelTransferOptions
public com.azure.storage.common.ParallelTransferOptions getParallelTransferOptions()Gets theParallelTransferOptions.- Returns:
ParallelTransferOptions
-
getDownloadRetryOptions
Gets theDownloadRetryOptions.- Returns:
DownloadRetryOptions
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
BlobRequestConditions
-
isRetrieveContentRangeMd5
public boolean isRetrieveContentRangeMd5()Gets whether the contentMD5 for the specified blob range should be returned.- Returns:
- Whether the contentMD5 for the specified blob range should be returned.
-
getOpenOptions
Gets theOpenOptionsto use to configure how to open or create the file.- Returns:
OpenOptionsto use to configure how to open or create the file.
-
setRange
-
setParallelTransferOptions
public BlobDownloadToFileOptions setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions.- Parameters:
parallelTransferOptions-ParallelTransferOptions- Returns:
- The updated options.
-
setDownloadRetryOptions
Sets theDownloadRetryOptions.- Parameters:
downloadRetryOptions-DownloadRetryOptions- Returns:
- The updated options.
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions-BlobRequestConditions- Returns:
- The updated options.
-
setRetrieveContentRangeMd5
Sets whether the contentMD5 for the specified blob range should be returned.- Parameters:
retrieveContentRangeMd5- Whether the contentMD5 for the specified blob range should be returned.- Returns:
- The updated options.
-
setOpenOptions
Sets theOpenOptionsto use to configure how to open or create the file.- Parameters:
openOptions-OpenOptionsto use to configure how to open or create the file.- Returns:
- The updated options.
-