Class ShareFileUploadOptions

java.lang.Object
com.azure.storage.file.share.models.ShareFileUploadOptions

public final class ShareFileUploadOptions extends Object
Extended options that may be passed when uploading a file range.
  • Constructor Details

    • ShareFileUploadOptions

      public ShareFileUploadOptions(Flux<ByteBuffer> dataFlux)
      Constructs a new FileParallelUploadOptions.
      Parameters:
      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.
    • ShareFileUploadOptions

      @Deprecated public ShareFileUploadOptions(InputStream dataStream, long length)
      Deprecated.
      length is no longer necessary; use ShareFileUploadOptions(InputStream) instead.
      Constructs a new FileParallelUploadOptions. Use ShareFileUploadOptions(InputStream) instead to supply an InputStream without knowing the exact length beforehand.
      Parameters:
      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.
    • ShareFileUploadOptions

      public ShareFileUploadOptions(InputStream dataStream)
      Constructs a new FileParallelUploadOptions.
      Parameters:
      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.
  • Method Details