public final class ShareFileUploadRangeOptions extends Object
| Constructor and Description |
|---|
ShareFileUploadRangeOptions(Flux<ByteBuffer> dataFlux,
long length)
Constructs a new
FileParallelUploadOptions. |
ShareFileUploadRangeOptions(InputStream dataStream,
long length)
Constructs a new
FileParallelUploadOptions. |
| 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.
|
ShareRequestConditions |
getRequestConditions()
Gets the
ShareRequestConditions. |
ShareFileUploadRangeOptions |
setOffset(Long offset)
Sets the offset to start writing data at.
|
ShareFileUploadRangeOptions |
setRequestConditions(ShareRequestConditions requestConditions)
Sets the
ShareRequestConditions. |
public ShareFileUploadRangeOptions(Flux<ByteBuffer> dataFlux, long length)
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.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 ShareFileUploadRangeOptions(InputStream dataStream, long length)
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.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 Flux<ByteBuffer> getDataFlux()
public InputStream getDataStream()
public long getLength()
InputStream or Flux<ByteBuffer>.public Long getOffset()
Long position to write at.public ShareFileUploadRangeOptions setOffset(Long offset)
offset - Long position to write at.public ShareRequestConditions getRequestConditions()
ShareRequestConditions.ShareRequestConditionspublic ShareFileUploadRangeOptions setRequestConditions(ShareRequestConditions requestConditions)
ShareRequestConditions.requestConditions - ShareRequestConditionsVisit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.