Object Storage Service (OSS) SDK for Java provides the following methods to download objects:
Streaming download: This feature allows you to read files in real time with no need to save the entire file. Streaming dowload is suitable for scenarios in which processing of large files or data operations in the memory is required.
Download objects as files: You can download files to a local directory and save them as local files for management and subsequent operations.
Range download: You can use range download to download data in a specified range. This feature is suitable when you only need a specified range of data instead of the entire file.
Resumable download: If the download is interrupted due to network issues, you can use resumable download to resume the process from the recorded position of interruption once the network connection is restored, reducing costs and bandwidth consumption. This feature is suitable for scenarios in which network connections are unstable or files required are large.
Conditional download: You can specify download conditions, such as the size and modification time of a file. The object will be downloaded only if the specified conditions are met. This feature is suitable for scenarios in which specified versions or status are required.
Authorize access: Access to files is restricted to users who possess a valid temporary URL. This method ensures secure and controlled access to resources. You can generate temporary URLs to grant temporary access for third-party users.
You can view the download progress shown in the progress bar. For more information, see Progress bar.