public final class ShareFileUploadOptions extends Object
| Constructor and Description |
|---|
ShareFileUploadOptions(Flux<ByteBuffer> dataFlux)
Constructs a new
FileParallelUploadOptions. |
ShareFileUploadOptions(InputStream dataStream)
Constructs a new
FileParallelUploadOptions. |
ShareFileUploadOptions(InputStream dataStream,
long length)
Deprecated.
length is no longer necessary; use
ShareFileUploadOptions.ShareFileUploadOptions(InputStream) instead. |
| Modifier and Type | Method and Description |
|---|---|
Flux<ByteBuffer> |
getDataFlux()
Gets the data source.
|
InputStream |
getDataStream()
Gets the data source.
|
Long |
getLength()
|
Long |
getOffset()
Gets the offset to start writing data at.
|
ParallelTransferOptions |
getParallelTransferOptions()
Gets the
ParallelTransferOptions. |
ShareRequestConditions |
getRequestConditions()
Gets the
ShareRequestConditions. |
ShareFileUploadOptions |
setOffset(Long offset)
Sets the offset to start writing data at.
|
ShareFileUploadOptions |
setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
Sets the
ParallelTransferOptions. |
ShareFileUploadOptions |
setRequestConditions(ShareRequestConditions requestConditions)
Sets the
ShareRequestConditions. |
public ShareFileUploadOptions(Flux<ByteBuffer> dataFlux)
FileParallelUploadOptions.dataFlux - The data to write to the file. Unlike other upload methods, this method does not require that
the Flux be replayable. In other words, it does not have to support multiple subscribers and is not
expected to produce the same values across subscriptions.
data provided in the InputStream.@Deprecated public ShareFileUploadOptions(InputStream dataStream, long length)
ShareFileUploadOptions.ShareFileUploadOptions(InputStream) instead.FileParallelUploadOptions.
Use ShareFileUploadOptions.ShareFileUploadOptions(InputStream) instead to supply an InputStream without knowing the exact
length beforehand.dataStream - The data to write to the file. The data must be markable. This is in order to support retries.
If the data is not markable, consider wrapping your data source in a BufferedInputStream to add
mark support.length - The exact length of the data. It is important that this value match precisely the length of the
data provided in the InputStream.public ShareFileUploadOptions(InputStream dataStream)
FileParallelUploadOptions.dataStream - The data to write to the file. The data must be markable. This is in order to support retries.
If the data is not markable, consider wrapping your data source in a BufferedInputStream to add
mark support.public Flux<ByteBuffer> getDataFlux()
public InputStream getDataStream()
public Long getLength()
InputStream or Flux<ByteBuffer>.public Long getOffset()
Long position to write at.public ShareFileUploadOptions setOffset(Long offset)
offset - Long position to write at.public ParallelTransferOptions getParallelTransferOptions()
ParallelTransferOptions.ParallelTransferOptionspublic ShareFileUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
ParallelTransferOptions.parallelTransferOptions - ParallelTransferOptionspublic ShareRequestConditions getRequestConditions()
ShareRequestConditions.ShareRequestConditionspublic ShareFileUploadOptions setRequestConditions(ShareRequestConditions requestConditions)
ShareRequestConditions.requestConditions - ShareRequestConditionsVisit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.