docs/doc/reference/com/google/android/exoplayer2/source/dash/manifest/RangedUri.html
Package com.google.android.exoplayer2.source.dash.manifest
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classRangedUriextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Defines a range of data located at a reference uri.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| long | length |
Deprecated.
The length of the range, or C.LENGTH_UNSET to indicate that the range is unbounded.
|
| long | start |
Deprecated.
The (zero based) index of the first byte of the range. |
Constructors | Constructor | Description |
| --- | --- |
| RangedUri(String referenceUri, long start, long length) |
Deprecated.
Constructs an ranged uri. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| RangedUri | attemptMerge(RangedUri other, String baseUri) |
Deprecated.
Attempts to merge this RangedUri with another and an optional common base uri.
|
| boolean | equals(Object obj) |
Deprecated.
|
| int | hashCode() |
Deprecated.
|
| Uri | resolveUri(String baseUri) |
Deprecated.
Returns the resolved Uri represented by the instance.
|
| String | resolveUriString(String baseUri) |
Deprecated.
Returns the resolved uri represented by the instance as a string.
|
| String | toString() |
Deprecated.
|
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
public final long start
Deprecated.
The (zero based) index of the first byte of the range.
-
public final long length
Deprecated.
The length of the range, or C.LENGTH_UNSET to indicate that the range is unbounded.
-
public RangedUri(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")referenceUri,
long start,
long length)
Deprecated.
Constructs an ranged uri.
Parameters:referenceUri - The reference uri.start - The (zero based) index of the first byte of the range.length - The length of the range, or C.LENGTH_UNSET to indicate that the range is unbounded.
-
public[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")resolveUri([String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")baseUri)
Deprecated.
Returns the resolved Uri represented by the instance.
Parameters:baseUri - The base Uri.Returns:The Uri represented by the instance.
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")resolveUriString([String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")baseUri)
Deprecated.
Returns the resolved uri represented by the instance as a string.
Parameters:baseUri - The base Uri.Returns:The uri represented by the instance.
-
@Nullable
public[RangedUri](RangedUri.html "class in com.google.android.exoplayer2.source.dash.manifest")attemptMerge(@Nullable[RangedUri](RangedUri.html "class in com.google.android.exoplayer2.source.dash.manifest")other,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")baseUri)
Deprecated.
Attempts to merge this RangedUri with another and an optional common base uri.
A merge is successful if both instances define the same Uri after resolution with the base uri, and if one starts the byte after the other ends, forming a contiguous region with no overlap.
If other is null then the merge is considered unsuccessful, and null is returned.
Parameters:other - The RangedUri to merge.baseUri - The base Uri.Returns:The merged RangedUri if the merge was successful. Null otherwise.
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Deprecated.
Overrides:equals in class Object
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()
Deprecated.
Overrides:toString in class Object