public final class FileRange extends Object
| Constructor and Description |
|---|
FileRange(long offset)
Specifies the download operation to start from the offset position (zero-based) and download the rest of the
entire file to the end.
|
FileRange(long offset,
Long count)
Specifies the download operation to start from the offset position (zero-based) and download the count number of
bytes.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getCount()
How many bytes to include in the range.
|
long |
getOffset()
The start of the range.
|
String |
toHeaderValue() |
String |
toString() |
public FileRange(long offset)
offset - the zero-based position to start downloadingIllegalArgumentException - If offset is less than 0.public FileRange(long offset,
Long count)
offset - the zero-based position to start downloadingcount - the number of bytes to downloadIllegalArgumentException - If offset or count is less than 0.public long getOffset()
public Long getCount()
public String toString()
public String toHeaderValue()
FileRange.toString() if count isn't null or offset isn't 0, otherwise
null.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.