docs/doc/reference/com/google/android/exoplayer2/util/UriUtil.html
Package com.google.android.exoplayer2.util
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classUriUtilextends[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.
Utility methods for manipulating URIs.
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static boolean | isAbsolute(String uri) |
Deprecated.
Returns true if the URI is starting with a scheme component, false otherwise.
|
| static Uri | removeQueryParameter(Uri uri, String queryParameterName) |
Deprecated.
Removes query parameter from a URI, if present.
|
| static String | resolve(String baseUri, String referenceUri) |
Deprecated.
Performs relative resolution of a referenceUri with respect to a baseUri.
|
| static Uri | resolveToUri(String baseUri, String referenceUri) |
Deprecated.
Like resolve(String, String), but returns a Uri instead of a String.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")resolveToUri(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")baseUri,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")referenceUri)
Deprecated.
Like resolve(String, String), but returns a Uri instead of a String.
Parameters:baseUri - The base URI.referenceUri - The reference URI to resolve.
-
public static[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")resolve(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")baseUri,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")referenceUri)
Deprecated.
Performs relative resolution of a referenceUri with respect to a baseUri.
The resolution is performed as specified by RFC-3986.
Parameters:baseUri - The base URI.referenceUri - The reference URI to resolve.
-
public static boolean isAbsolute(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")uri)
Deprecated.
Returns true if the URI is starting with a scheme component, false otherwise.
-
public static[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")removeQueryParameter([Uri](https://developer.android.com/reference/android/net/Uri.html?is-external=true "class or interface in android.net")uri,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")queryParameterName)
Deprecated.
Removes query parameter from a URI, if present.
Parameters:uri - The URI.queryParameterName - The name of the query parameter.Returns:The URI without the query parameter.