@NotNull private static CloudBlob getCloudBlob(@NotNull CloudBlobContainer container, @NotNull BlobFile blobFile) throws URISyntaxException, StorageException { CloudBlob blob; if (blobFile.getType().equals(BlobType.BLOCK_BLOB.toString())) { blob = container.getBlockBlobReference(blobFile.getPath()); } else { blob = container.getPageBlobReference(blobFile.getPath()); } return blob; }
@NotNull private static CloudBlob getCloudBlob(@NotNull CloudBlobDirectory parentDirectory, @NotNull BlobFile blobFile) throws URISyntaxException, StorageException { CloudBlob blob; if (blobFile.getType().equals(BlobType.BLOCK_BLOB.toString())) { blob = parentDirectory.getBlockBlobReference(blobFile.getName()); } else { blob = parentDirectory.getPageBlobReference(blobFile.getName()); } return blob; }
type = properties.getBlobType().toString();
type = properties.getBlobType().toString();