ShareFileRange Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareFileRange
- com.
public final class ShareFileRange
The range of a file in the storage file service.
Constructor Summary
Constructor | Description |
---|---|
ShareFileRange(Range range) |
Creates an instance of the range of a file from the passed Range. |
ShareFileRange(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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long | getEnd() |
long | getStart() |
String | toHeaderValue() |
String | toString() |
Methods inherited from java.lang.Object
Constructor Details
ShareFileRange
public ShareFileRange(Range range)
Creates an instance of the range of a file from the passed Range.
Parameters:
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:
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:
Method Details
getEnd
public Long getEnd()
Returns:
getStart
public long getStart()
Returns:
toHeaderValue
public String toHeaderValue()
Returns:
toString
public String toString()
Overrides:
ShareFileRange.toString()Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for