你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobOutputStream Class
- java.
lang. Object - java.
io. OutputStream - com.
azure. storage. common. StorageOutputStream - com.
azure. storage. blob. specialized. BlobOutputStream
- com.
- com.
- java.
public abstract class BlobOutputStream
extends StorageOutputStream
BlobOutputStream allows for the uploading of data to a blob using a stream-like approach.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Blob |
blockBlobOutputStream(BlobAsyncClient client, ParallelTransferOptions parallelTransferOptions, BlobHttpHeaders headers, Map<String,String> metadata, AccessTier tier, BlobRequestConditions requestConditions)
Creates a block blob output stream from a Blob |
static
Blob |
blockBlobOutputStream(BlobAsyncClient client, ParallelTransferOptions parallelTransferOptions, BlobHttpHeaders headers, Map<String,String> metadata, AccessTier tier, BlobRequestConditions requestConditions, Context context)
Creates a block blob output stream from a Blob |
static
Blob |
blockBlobOutputStream(BlobAsyncClient client, BlockBlobOutputStreamOptions options, Context context)
Creates a block blob output stream from a Blob |
synchronized void |
close()
Closes this output stream and releases any system resources associated with this stream. |
Methods inherited from StorageOutputStream
Methods inherited from java.io.OutputStream
Methods inherited from java.lang.Object
Method Details
blockBlobOutputStream
public static BlobOutputStream blockBlobOutputStream(BlobAsyncClient client, ParallelTransferOptions parallelTransferOptions, BlobHttpHeaders headers, Map
Creates a block blob output stream from a BlobAsyncClient
Parameters:
Returns:
blockBlobOutputStream
public static BlobOutputStream blockBlobOutputStream(BlobAsyncClient client, ParallelTransferOptions parallelTransferOptions, BlobHttpHeaders headers, Map
Creates a block blob output stream from a BlobAsyncClient
Parameters:
Returns:
blockBlobOutputStream
public static BlobOutputStream blockBlobOutputStream(BlobAsyncClient client, BlockBlobOutputStreamOptions options, Context context)
Creates a block blob output stream from a BlobAsyncClient
Parameters:
Returns:
close
public synchronized void close()
Closes this output stream and releases any system resources associated with this stream. If any data remains in the buffer it is committed to the service.
Overrides:
BlobOutputStream.close()Throws: