public abstract class BlobOutputStream extends StorageOutputStream
lastError
Modifier and Type | Method and Description |
---|---|
static BlobOutputStream |
blockBlobOutputStream(BlobAsyncClient client,
BlockBlobOutputStreamOptions options,
com.azure.core.util.Context context)
Creates a block blob output stream from a BlobAsyncClient
|
static BlobOutputStream |
blockBlobOutputStream(BlobAsyncClient client,
ParallelTransferOptions parallelTransferOptions,
BlobHttpHeaders headers,
Map<String,String> metadata,
AccessTier tier,
BlobRequestConditions requestConditions)
Creates a block blob output stream from a BlobAsyncClient
|
static BlobOutputStream |
blockBlobOutputStream(BlobAsyncClient client,
ParallelTransferOptions parallelTransferOptions,
BlobHttpHeaders headers,
Map<String,String> metadata,
AccessTier tier,
BlobRequestConditions requestConditions,
com.azure.core.util.Context context)
Creates a block blob output stream from a BlobAsyncClient
|
void |
close()
Closes this output stream and releases any system resources associated with this stream.
|
checkStreamState, dispatchWrite, flush, write, write, write, writeInternal
nullOutputStream
public static BlobOutputStream blockBlobOutputStream(BlobAsyncClient client, ParallelTransferOptions parallelTransferOptions, BlobHttpHeaders headers, Map<String,String> metadata, AccessTier tier, BlobRequestConditions requestConditions)
client
- BlobAsyncClient
The blob client.parallelTransferOptions
- ParallelTransferOptions
used to configure buffered uploading.headers
- BlobHttpHeaders
metadata
- Metadata to associate with the blob. If there is leading or trailing whitespace in any
metadata key or value, it must be removed or encoded.tier
- AccessTier
for the destination blob.requestConditions
- BlobRequestConditions
BlobOutputStream
associated with the blob.public static BlobOutputStream blockBlobOutputStream(BlobAsyncClient client, ParallelTransferOptions parallelTransferOptions, BlobHttpHeaders headers, Map<String,String> metadata, AccessTier tier, BlobRequestConditions requestConditions, com.azure.core.util.Context context)
client
- BlobAsyncClient
The blob client.parallelTransferOptions
- ParallelTransferOptions
used to configure buffered uploading.headers
- BlobHttpHeaders
metadata
- Metadata to associate with the blob. If there is leading or trailing whitespace in any
metadata key or value, it must be removed or encoded.tier
- AccessTier
for the destination blob.requestConditions
- BlobRequestConditions
context
- Additional context that is passed through the Http pipeline during the service call.BlobOutputStream
associated with the blob.public static BlobOutputStream blockBlobOutputStream(BlobAsyncClient client, BlockBlobOutputStreamOptions options, com.azure.core.util.Context context)
client
- BlobAsyncClient
The blob client.options
- BlockBlobOutputStreamOptions
context
- Additional context that is passed through the Http pipeline during the service call.BlobOutputStream
associated with the blob.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class StorageOutputStream
IOException
- If an I/O error occurs.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.