Class ShareFileRange

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

public final class ShareFileRange extends Object
The range of a file in the storage file service.
  • Constructor Details

    • ShareFileRange

      public ShareFileRange(long start)
      Create an instance of the range of a file. Specify the start the range and the end defaults to the length of the file.
      Parameters:
      start - Specifies the start of bytes to be written.
    • ShareFileRange

      public ShareFileRange(long start, Long end)
      Create an instance of the range of a file. Both the start and end of the range must be specified.
      Parameters:
      start - Specifies the start of bytes to be written.
      end - Specifies the end of bytes to be written
    • ShareFileRange

      public ShareFileRange(Range range)
      Creates an instance of the range of a file from the passed Range.
      Parameters:
      range - Range object containing start and end of the file.
  • Method Details

    • getStart

      public long getStart()
      Returns:
      The start of bytes to be written.
    • getEnd

      public Long getEnd()
      Returns:
      The end of bytes to be written.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      The string format of the ShareFileRange written into request.
    • toHeaderValue

      public String toHeaderValue()
      Returns:
      toString() if count isn't null or offset isn't 0, otherwise null.