public class AzureStorage extends Object
Constructor and Description |
---|
AzureStorage(com.microsoft.azure.storage.blob.CloudBlobClient cloudBlobClient) |
Modifier and Type | Method and Description |
---|---|
List<String> |
emptyCloudBlobDirectory(String containerName,
String virtualDirPath) |
com.microsoft.azure.storage.blob.CloudBlockBlob |
getBlob(String containerName,
String blobPath) |
boolean |
getBlobExists(String container,
String blobPath) |
InputStream |
getBlobInputStream(String containerName,
String blobPath) |
long |
getBlobLength(String containerName,
String blobPath) |
com.microsoft.azure.storage.blob.CloudBlobContainer |
getCloudBlobContainer(String containerName) |
void |
uploadBlob(File file,
String containerName,
String blobPath) |
public AzureStorage(com.microsoft.azure.storage.blob.CloudBlobClient cloudBlobClient)
public com.microsoft.azure.storage.blob.CloudBlobContainer getCloudBlobContainer(String containerName) throws com.microsoft.azure.storage.StorageException, URISyntaxException
com.microsoft.azure.storage.StorageException
URISyntaxException
public List<String> emptyCloudBlobDirectory(String containerName, String virtualDirPath) throws com.microsoft.azure.storage.StorageException, URISyntaxException
com.microsoft.azure.storage.StorageException
URISyntaxException
public void uploadBlob(File file, String containerName, String blobPath) throws IOException, com.microsoft.azure.storage.StorageException, URISyntaxException
IOException
com.microsoft.azure.storage.StorageException
URISyntaxException
public com.microsoft.azure.storage.blob.CloudBlockBlob getBlob(String containerName, String blobPath) throws URISyntaxException, com.microsoft.azure.storage.StorageException
URISyntaxException
com.microsoft.azure.storage.StorageException
public long getBlobLength(String containerName, String blobPath) throws URISyntaxException, com.microsoft.azure.storage.StorageException
URISyntaxException
com.microsoft.azure.storage.StorageException
public InputStream getBlobInputStream(String containerName, String blobPath) throws URISyntaxException, com.microsoft.azure.storage.StorageException
URISyntaxException
com.microsoft.azure.storage.StorageException
public boolean getBlobExists(String container, String blobPath) throws URISyntaxException, com.microsoft.azure.storage.StorageException
URISyntaxException
com.microsoft.azure.storage.StorageException
Copyright © 2011–2015. All rights reserved.