### YamlMime:JavaType
uid: "com.azure.storage.file.datalake.models.FileRange"
fullName: "com.azure.storage.file.datalake.models.FileRange"
name: "FileRange"
nameWithType: "FileRange"
summary: "This is a representation of a range of bytes on a file, typically used during a download operation."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **FileRange**"
constructors:
- uid: "com.azure.storage.file.datalake.models.FileRange.FileRange(long)"
fullName: "com.azure.storage.file.datalake.models.FileRange.FileRange(long offset)"
name: "FileRange(long offset)"
nameWithType: "FileRange.FileRange(long offset)"
summary: "Specifies the download operation to start from the offset position (zero-based) and download the rest of the entire file to the end."
parameters:
- description: "the zero-based position to start downloading"
name: "offset"
type: ""
syntax: "public FileRange(long offset)"
desc: "Specifies the download operation to start from the offset position (zero-based) and download the rest of the entire file to the end."
- uid: "com.azure.storage.file.datalake.models.FileRange.FileRange(long,java.lang.Long)"
fullName: "com.azure.storage.file.datalake.models.FileRange.FileRange(long offset, Long count)"
name: "FileRange(long offset, Long count)"
nameWithType: "FileRange.FileRange(long offset, Long count)"
summary: "Specifies the download operation to start from the offset position (zero-based) and download the count number of bytes."
parameters:
- description: "the zero-based position to start downloading"
name: "offset"
type: ""
- description: "the number of bytes to download"
name: "count"
type: "Long"
syntax: "public FileRange(long offset, Long count)"
desc: "Specifies the download operation to start from the offset position (zero-based) and download the count number of bytes."
methods:
- uid: "com.azure.storage.file.datalake.models.FileRange.getCount()"
fullName: "com.azure.storage.file.datalake.models.FileRange.getCount()"
name: "getCount()"
nameWithType: "FileRange.getCount()"
summary: "How many bytes to include in the range."
syntax: "public Long getCount()"
desc: "How many bytes to include in the range. Must be greater than or equal to 0 if specified."
returns:
description: "the number bytes to include in the range"
type: "Long"
- uid: "com.azure.storage.file.datalake.models.FileRange.getOffset()"
fullName: "com.azure.storage.file.datalake.models.FileRange.getOffset()"
name: "getOffset()"
nameWithType: "FileRange.getOffset()"
summary: "The start of the range."
syntax: "public long getOffset()"
desc: "The start of the range. Must be greater than or equal to 0."
returns:
description: "the offset for the range"
type: ""
- uid: "com.azure.storage.file.datalake.models.FileRange.toHeaderValue()"
fullName: "com.azure.storage.file.datalake.models.FileRange.toHeaderValue()"
name: "toHeaderValue()"
nameWithType: "FileRange.toHeaderValue()"
syntax: "public String toHeaderValue()"
returns:
description: " if count
isn't null
or offset
isn't 0, otherwise\n null."
type: "String"
- uid: "com.azure.storage.file.datalake.models.FileRange.toString()"
fullName: "com.azure.storage.file.datalake.models.FileRange.toString()"
name: "toString()"
nameWithType: "FileRange.toString()"
overridden: "java.lang.Object.toString()"
syntax: "public String toString()"
returns:
description: "A String
compliant with the format of the Azure Storage x-ms-range and Range headers."
type: "String"
type: "class"
desc: "This is a representation of a range of bytes on a file, typically used during a download operation. This type is immutable to ensure thread-safety of requests, so changing the values for a different operation requires construction of a new object. Passing null as a FileRange value will default to the entire range of the file."
metadata: {}
package: "com.azure.storage.file.datalake.models"
artifact: com.azure:azure-storage-file-datalake:12.21.0