CloudBlobDirectory Class

Definition

Represents a virtual directory of blobs, designated by a delimiter character.

Containers, which are encapsulated as CloudBlobContainer objects, hold directories, and directories hold block blobs and page blobs. Directories can also contain sub-directories.

public class CloudBlobDirectory implements ListBlobItem
Inheritance
java.lang.Object
CloudBlobDirectory

Constructors

CloudBlobDirectory(final StorageUri uri, final String prefix, final CloudBlobClient client, final CloudBlobContainer container)

Creates an instance of the class using the specified address, directory parent, and client.

CloudBlobDirectory(final StorageUri uri, final String prefix, final CloudBlobClient client, final CloudBlobContainer container, final CloudBlobDirectory parent)

Creates an instance of the class using the specified address, directory parent, and client.

Methods

getAppendBlobReference(final String blobName)

Returns a reference to a CloudAppendBlob object that represents an append blob in the directory.

getAppendBlobReference(final String blobName, final String snapshotID)

Returns a reference to a CloudAppendBlob object that represents an append blob in the directory, using the specified snapshot ID.

getBlockBlobReference(final String blobName)

Returns a reference to a CloudBlockBlob object that represents a block blob in this directory.

getBlockBlobReference(final String blobName, final String snapshotID)

Returns a reference to a CloudBlockBlob object that represents a block blob in this directory, using the specified snapshot ID.

getContainer()

Returns the container for this directory.

getDirectoryReference(String directoryName)

Returns a reference to a virtual blob directory beneath this directory.

getPageBlobReference(final String blobName)

Returns a reference to a CloudPageBlob object that represents a page blob in the directory.

getPageBlobReference(final String blobName, final String snapshotID)

Returns a reference to a CloudPageBlob object that represents a page blob in the directory, using the specified snapshot ID.

getParent()

Returns the parent directory of this directory.

getPrefix()

Returns the prefix for this directory.

getServiceClient()

Returns the Blob service client associated with this directory.

getStorageUri()

Returns the list of URIs for all locations.

getUri()

Returns the URI for this directory.

listBlobs()

Returns an enumerable collection of blob items for the directory.

listBlobs(String prefix)

Returns an enumerable collection of blob items whose names begin with the specified prefix for the directory.

listBlobs(String prefix, final boolean useFlatBlobListing, final EnumSet<BlobListingDetails> listingDetails, final BlobRequestOptions options, final OperationContext opContext)

Returns an enumerable collection of blob items whose names begin with the specified prefix, using the specified flat or hierarchical option, listing details options, request options, and operation context.

listBlobsSegmented()

Returns a result segment of an enumerable collection of blob items in the directory.

listBlobsSegmented(String prefix)

Returns a result segment containing a collection of blob items whose names begin with the specified prefix.

listBlobsSegmented(String prefix, final boolean useFlatBlobListing, final EnumSet<BlobListingDetails> listingDetails, final Integer maxResults, final ResultContinuation continuationToken, final BlobRequestOptions options, final OperationContext opContext)

Returns a result segment containing a collection of blob items whose names begin with the specified prefix, using the specified flat or hierarchical option, listing details options, request options, and operation context.