@Override public boolean exists(OperationContext opContext) throws StorageException { return getBlob().exists(null, null, opContext); }
/** * Checks to see if the blob exists. * * @return <code>true</code> if the blob exists, otherwise <code>false</code>. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final boolean exists() throws StorageException { return this.exists(null /* accessCondition */, null /* options */, null /* opContext */); }
@Override public boolean exists(OperationContext opContext) throws StorageException { return getBlob().exists(null, null, opContext); }
/** * Checks to see if the blob exists. * * @return <code>true</code> if the blob exists, otherwise <code>false</code>. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final boolean exists() throws StorageException { return this.exists(null /* accessCondition */, null /* options */, null /* opContext */); }
/** * Checks to see if the blob exists, using the specified request options and operation context. * * @param accessCondition * An {@link AccessCondition} object that represents the access conditions for the blob. * @param options * A {@link BlobRequestOptions} object that specifies any additional options for the request. Specifying * <code>null</code> will use the default request options from the associated service client ( * {@link CloudBlobClient}). * @param opContext * An {@link OperationContext} object that represents the context for the current operation. This object * is used to track requests to the storage service, and to provide additional runtime information about * the operation. * * @return <code>true</code> if the blob exists, other wise <code>false</code>. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final boolean exists(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext) throws StorageException { return this.exists(false /* primaryOnly */, accessCondition, options, opContext); }
/** * Checks to see if the blob exists, using the specified request options and operation context. * * @param accessCondition * An {@link AccessCondition} object that represents the access conditions for the blob. * @param options * A {@link BlobRequestOptions} object that specifies any additional options for the request. Specifying * <code>null</code> will use the default request options from the associated service client ( * {@link CloudBlobClient}). * @param opContext * An {@link OperationContext} object that represents the context for the current operation. This object * is used to track requests to the storage service, and to provide additional runtime information about * the operation. * * @return <code>true</code> if the blob exists, other wise <code>false</code>. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final boolean exists(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext) throws StorageException { return this.exists(false /* primaryOnly */, accessCondition, options, opContext); }
public ReverseFileReader(CloudBlob blob, int bufferSize) throws StorageException { this.blob = blob; if (blob.exists()) { this.fileOffset = (int) blob.getProperties().getLength(); } else { this.fileOffset = 0; } this.bufferSize = bufferSize; }
public ReverseFileReader(CloudBlob blob, int bufferSize) throws StorageException { this.blob = blob; if (blob.exists()) { this.fileOffset = (int) blob.getProperties().getLength(); } else { this.fileOffset = 0; } this.bufferSize = bufferSize; }
options = BlobRequestOptions.populateAndApplyDefaults(options, this.properties.getBlobType(), this.blobServiceClient); boolean exists = this.exists(true, accessCondition, options, opContext); if (exists) { try {
options = BlobRequestOptions.populateAndApplyDefaults(options, this.properties.getBlobType(), this.blobServiceClient); boolean exists = this.exists(true, accessCondition, options, opContext); if (exists) { try {
final CloudBlob blob = session.getClient().getContainerReference(containerService.getContainer(file).getName()) .getBlobReferenceFromServer(containerService.getKey(file)); found = blob.exists(null, null, context);