FileRange Class
- java.
lang. Object - com.
microsoft. azure. storage. file. FileRange
- com.
public class FileRange
Represents a range of bytes in a file.
Constructor Summary
Constructor | Description |
---|---|
FileRange(final long start, final long end) |
Creates an instance of the class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
long |
getEndOffset()
Gets the ending offset. |
long |
getStartOffset()
Gets the starting offset. |
void |
setEndOffset(final long endOffset)
Sets the ending offset. |
void |
setStartOffset(final long startOffset)
Sets the starting offset. |
String |
toString()
Returns the content of the file range as a string. |
Constructor Details
FileRange
public FileRange(final long start, final long end)
Creates an instance of the class.
Parameters:
long
which represents the starting offset.
long
which represents the ending offset.
Method Details
getEndOffset
public long getEndOffset()
Gets the ending offset.
Returns:
long
which represents the ending offset.getStartOffset
public long getStartOffset()
Gets the starting offset.
Returns:
long
which represents the starting offset.setEndOffset
public void setEndOffset(final long endOffset)
Sets the ending offset.
Parameters:
long
which specifies the ending offset.
setStartOffset
public void setStartOffset(final long startOffset)
Sets the starting offset.
Parameters:
long
which specifies the starting offset.
toString
public String toString()
Returns the content of the file range as a string.
Returns:
String
which represents the contents of the file range.Applies to
Azure SDK for Java