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 longlengthDeprecated.The length of the range, orC.LENGTH_UNSETto indicate that the range is unbounded.longstartDeprecated.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 RangedUriattemptMerge(RangedUri other, String baseUri)Deprecated.Attempts to merge thisRangedUriwith another and an optional common base uri.booleanequals(Object obj)Deprecated.inthashCode()Deprecated.UriresolveUri(String baseUri)Deprecated.Returns the resolvedUrirepresented by the instance.StringresolveUriString(String baseUri)Deprecated.Returns the resolved uri represented by the instance as a string.StringtoString()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_UNSETto 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_UNSETto indicate that the range is unbounded.
-
-
Method Detail
-
resolveUri
public Uri resolveUri(String baseUri)
Deprecated.Returns the resolvedUrirepresented by the instance.- Parameters:
baseUri- The base Uri.- Returns:
- The
Urirepresented 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 thisRangedUriwith another and an optional common base uri.A merge is successful if both instances define the same
Uriafter resolution with the base uri, and if one starts the byte after the other ends, forming a contiguous region with no overlap.If
otheris null then the merge is considered unsuccessful, and null is returned.
-
-