Class ShareFileRange
java.lang.Object
com.azure.storage.file.share.models.ShareFileRange
The range of a file in the storage file service.
-
Constructor Summary
ConstructorsConstructorDescriptionShareFileRange
(long start) Create an instance of the range of a file.ShareFileRange
(long start, Long end) Create an instance of the range of a file.ShareFileRange
(Range range) Creates an instance of the range of a file from the passedRange
. -
Method Summary
-
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
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
-
-
Method Details
-
getStart
public long getStart()- Returns:
- The start of bytes to be written.
-
getEnd
- Returns:
- The end of bytes to be written.
-
toString
-
toHeaderValue
- Returns:
toString()
ifcount
isn'tnull
oroffset
isn't 0, otherwise null.
-