本文整理汇总了Java中com.microsoft.azure.storage.blob.CloudBlobDirectory类的典型用法代码示例。如果您正苦于以下问题:Java CloudBlobDirectory类的具体用法?Java CloudBlobDirectory怎么用?Java CloudBlobDirectory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CloudBlobDirectory类属于com.microsoft.azure.storage.blob包,在下文中一共展示了CloudBlobDirectory类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: next
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public ListBlobItem next() {
ListBlobItem unwrapped = present.next();
if (unwrapped instanceof CloudBlobDirectory) {
return new CloudBlobDirectoryWrapperImpl((CloudBlobDirectory) unwrapped);
} else if (unwrapped instanceof CloudBlockBlob) {
return new CloudBlockBlobWrapperImpl((CloudBlockBlob) unwrapped);
} else if (unwrapped instanceof CloudPageBlob) {
return new CloudPageBlobWrapperImpl((CloudPageBlob) unwrapped);
} else {
return unwrapped;
}
}
示例2: getDirectoryReference
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectoryWrapper getDirectoryReference(String relativePath)
throws URISyntaxException, StorageException {
CloudBlobDirectory dir = container.getDirectoryReference(relativePath);
return new CloudBlobDirectoryWrapperImpl(dir);
}
示例3: LogBlobIterator
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
public LogBlobIterator(final CloudBlobDirectory logDirectory, final Date startDate, final Date endDate,
final EnumSet<LoggingOperations> operations, final EnumSet<BlobListingDetails> details,
final BlobRequestOptions options, final OperationContext opContext) {
TimeZone gmtTime = TimeZone.getTimeZone("GMT");
HOUR_FORMAT.setTimeZone(gmtTime);
DAY_FORMAT.setTimeZone(gmtTime);
MONTH_FORMAT.setTimeZone(gmtTime);
YEAR_FORMAT.setTimeZone(gmtTime);
this.logDirectory = logDirectory;
this.operations = operations;
this.details = details;
this.opContext = opContext;
if (options == null) {
this.options = new BlobRequestOptions();
}
else {
this.options = options;
}
if (startDate != null) {
this.startDate = new GregorianCalendar();
this.startDate.setTime(startDate);
this.startDate.add(GregorianCalendar.MINUTE, (-this.startDate.get(GregorianCalendar.MINUTE)));
this.startDate.setTimeZone(gmtTime);
}
if (endDate != null) {
this.endDate = new GregorianCalendar();
this.endDate.setTime(endDate);
this.endDate.setTimeZone(gmtTime);
this.endPrefix = this.logDirectory.getPrefix() + HOUR_FORMAT.format(this.endDate.getTime());
}
}
示例4: LogBlobIterable
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
protected LogBlobIterable(final CloudBlobDirectory logDirectory, final Date startTime, final Date endTime,
final EnumSet<LoggingOperations> operations, final EnumSet<BlobListingDetails> details,
final BlobRequestOptions options, final OperationContext opContext) {
this.logDirectory = logDirectory;
this.startTime = startTime;
this.endTime = endTime;
this.operations = operations;
this.details = details;
this.options = options;
this.opContext = opContext;
}
示例5: CloudBlobDirectoryWrapperImpl
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
public CloudBlobDirectoryWrapperImpl(CloudBlobDirectory directory) {
this.directory = directory;
}
示例6: getParent
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectory getParent() throws URISyntaxException,
StorageException {
return directory.getParent();
}
示例7: getParent
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectory getParent() throws URISyntaxException,
StorageException {
return null;
}
示例8: getParent
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectory getParent() throws URISyntaxException, StorageException {
return null;
}
示例9: getLogDirectory
import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
/**
* Gets the {@link CloudBlobDirectory} object for the logs for a specific storage service.
*
* @param service
* A {@link StorageService} enumeration value that indicates which storage service to use.
* @return
* A {@link CloudBlobDirectory} object.
* @throws URISyntaxException
* @throws StorageException
*/
public CloudBlobDirectory getLogDirectory(StorageService service) throws URISyntaxException, StorageException {
Utility.assertNotNull("service", service);
return this.blobClient.getContainerReference(this.LogContainer).getDirectoryReference(
service.toString().toLowerCase(Locale.US));
}