You might find the examples in the README and the samples folder for the repo helpful.
The below code to download files from the container was provided by our service team:
public static void main( String[] args ) throws IOException {
String containerName = "<containerName>";
String sasToken = "<sasToken>";
BlobServiceClient storageClient = new BlobServiceClientBuilder()
.endpoint("https://storageaccount.blob.core.windows.net")
.sasToken(sasToken).buildClient();
BlobContainerClient blobContainerClient =
storageClient.getBlobContainerClient(containerName);
PagedIterable<BlobItem> blobs = blobContainerClient.listBlobs();
BlobClient blobClient = null;
for (BlobItem blobItem : blobs) {
blobClient = blobContainerClient.getBlobClient(blobItem.getName());
if (blobClient != null) {
String filePath="D:\\temp\\" + blobItem.getName();
FileUtils.forceMkdirParent(new File(filePath));
blobClient.downloadToFile(filePath);
}
}
}
Hope this helps! Let us know if you need further assistance or have any questions.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.