docs/javadoc/reference/com/facebook/common/util/UriUtil.html
|
|
Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.common.util.UriUtil |
| Constants |
|---|
| String |
| String |
| String |
| String |
| String |
| String |
| String |
| String |
| Public Constructors |
|---|
| Public Methods |
|---|
| static AssetFileDescriptor |
| Gets the AssetFileDescriptor for a local file. |
| static String |
| Get the path of a file from the Uri. |
| static String |
| static Uri |
Returns a URI for a given file using fromFile(File). |
| static Uri |
| Returns a URI for the given resource ID in the given package. |
| static Uri |
| Return a URI for the given resource ID. |
| static boolean |
| Check if the uri is a data uri |
| static boolean |
| Check if uri represents local asset |
| static boolean |
| Checks if the given URI is for a photo from the device's local media store. |
| static boolean |
| Checks if the given URI is a general Contact URI, and not a specific display photo. |
| static boolean |
| Check if uri represents local content |
| static boolean |
| Check if uri represents local file |
| static boolean |
| Check if uri represents local resource |
| static boolean |
| Check if uri represents network resource |
| static boolean |
| Check if uri represents fully qualified resource URI. |
| static Uri |
A wrapper around parse(String) that returns null if the input is null. |
| static URL |
| Convert android.net.Uri to java.net.URL as necessary for some networking APIs. |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
|
Data scheme for URIs
Constant Value: "data"
Constant Value: "https"
http scheme for URIs
Constant Value: "http"
Asset scheme for URIs
Constant Value: "asset"
Content URI scheme for URIs
Constant Value: "content"
File scheme for URIs
Constant Value: "file"
Resource scheme for URIs
Constant Value: "res"
Resource scheme for fully qualified resources which might have a package name that is different than the application one. This has the constant value of "android.resource".
Constant Value: "android.resource"
Gets the AssetFileDescriptor for a local file. This offers an alternative solution for opening content:// scheme files
| contentResolver | the content resolver which will query for the source file | | srcUri | The source uri |
Get the path of a file from the Uri.
| contentResolver | the content resolver which will query for the source file | | srcUri | The source uri |
| uri | uri to extract scheme from, possibly null |
Returns a URI for a given file using fromFile(File).
| file | a file with a valid path |
Returns a URI for the given resource ID in the given package. Use this method only if you need to specify a package name different to your application's main package.
| packageName | a package name (e.g. com.facebook.myapp.plugin) | | resourceId | to resource ID to use |
Return a URI for the given resource ID. The returned URI consists of a LOCAL_RESOURCE_SCHEME scheme and the resource ID as path.
| resourceId | the resource ID to use |
Check if the uri is a data uri
Check if uri represents local asset
| uri | uri to check |
Checks if the given URI is for a photo from the device's local media store.
| uri | the URI to check |
Checks if the given URI is a general Contact URI, and not a specific display photo.
| uri | the URI to check |
Check if uri represents local content
| uri | uri to check |
Check if uri represents local file
| uri | uri to check |
Check if uri represents local resource
| uri | uri to check |
LOCAL_RESOURCE_SCHEMECheck if uri represents network resource
| uri | uri to check |
Check if uri represents fully qualified resource URI.
| uri | uri to check |
QUALIFIED_RESOURCE_SCHEMEA wrapper around parse(String) that returns null if the input is null.
| uriAsString | the uri as a string |
Convert android.net.Uri to java.net.URL as necessary for some networking APIs.
| uri | uri to convert |
+Generated by Doclava. +