Class RangedUri
- java.lang.Object
-
- com.google.android.exoplayer2.source.dash.manifest.RangedUri
-
@Deprecated public final class RangedUri extends Object
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.
-
-
Field Summary
Fields Modifier and Type Field Description long
length
Deprecated.The length of the range, orC.LENGTH_UNSET
to indicate that the range is unbounded.long
start
Deprecated.The (zero based) index of the first byte of the range.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RangedUri
attemptMerge(RangedUri other, String baseUri)
Deprecated.Attempts to merge thisRangedUri
with another and an optional common base uri.boolean
equals(Object obj)
Deprecated.int
hashCode()
Deprecated.Uri
resolveUri(String baseUri)
Deprecated.Returns the resolvedUri
represented by the instance.String
resolveUriString(String baseUri)
Deprecated.Returns the resolved uri represented by the instance as a string.String
toString()
Deprecated.
-
-
-
Field Detail
-
start
public final long start
Deprecated.The (zero based) index of the first byte of the range.
-
length
public final long length
Deprecated.The length of the range, orC.LENGTH_UNSET
to indicate that the range is unbounded.
-
-
Constructor Detail
-
RangedUri
public RangedUri(@Nullable String 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, orC.LENGTH_UNSET
to indicate that the range is unbounded.
-
-
Method Detail
-
resolveUri
public Uri resolveUri(String baseUri)
Deprecated.Returns the resolvedUri
represented by the instance.- Parameters:
baseUri
- The base Uri.- Returns:
- The
Uri
represented by the instance.
-
resolveUriString
public String resolveUriString(String 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.
-
attemptMerge
@Nullable public RangedUri attemptMerge(@Nullable RangedUri other, String baseUri)
Deprecated.Attempts to merge thisRangedUri
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.
-
-