Example usage for Java android.net Uri fields, constructors, methods, implement or subclass
The text is from its open source code.
Builder | buildUpon() Constructs a new builder, copying the attributes from this Uri. |
String | decode(String s) Decodes '%'-escaped octets in the given string using the UTF-8 scheme. |
String | encode(String s, String allow) Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme. |
String | encode(String s) Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme. |
boolean | equals(Object o) Compares this Uri to another object for equality. |
Uri | fromFile(File file) Creates a Uri from a file. |
Uri | fromParts(String scheme, String ssp, String fragment) Creates an opaque Uri from the given components. |
String | getAuthority() Gets the decoded authority part of this URI. |
boolean | getBooleanQueryParameter(String key, boolean defaultValue) Searches the query string for the first value with the given key and interprets it as a boolean value. |
String | getEncodedAuthority() Gets the encoded authority part of this URI. |
String | getEncodedFragment() Gets the encoded fragment part of this URI, everything after the '#'. |
String | getEncodedPath() Gets the encoded path. |
String | getEncodedQuery() Gets the encoded query component from this URI. |
String | getEncodedSchemeSpecificPart() Gets the scheme-specific part of this URI, i.e. everything between the scheme separator ':' and the fragment separator '#'. |
String | getEncodedUserInfo() Gets the encoded user information from the authority. |
String | getFragment() Gets the decoded fragment part of this URI, everything after the '#'. |
String | getHost() Gets the encoded host from the authority for this URI. |
String | getLastPathSegment() Gets the decoded last segment in the path. |
String | getPath() Gets the decoded path. |
List | getPathSegments() Gets the decoded path segments. |
int | getPort() Gets the port from the authority for this URI. |
String | getQuery() Gets the decoded query component from this URI. |
String | getQueryParameter(String key) Searches the query string for the first value with the given key. |
Set | getQueryParameterNames() Returns a set of the unique names of all query parameters. |
List | getQueryParameters(String key) Searches the query string for parameter values with the given key. |
String | getScheme() Gets the scheme of this URI. |
String | getSchemeSpecificPart() Gets the scheme-specific part of this URI, i.e. everything between the scheme separator ':' and the fragment separator '#'. |
String | getUserInfo() Gets the decoded user information from the authority. |
int | hashCode() Hashes the encoded string represention of this Uri consistently with #equals(Object) . |
boolean | isAbsolute() Returns true if this URI is absolute, i.e. if it contains an explicit scheme. |
boolean | isHierarchical() Returns true if this URI is hierarchical like "http://google.com". |
boolean | isOpaque() Returns true if this URI is opaque like "mailto:nobody@google.com". |
boolean | isRelative() Returns true if this URI is relative, i.e. if it doesn't contain an explicit scheme. |
Uri | parse(String uriString) Creates a Uri which parses the given encoded URI string. |
String | toString() Returns the encoded string representation of this URI. |
Uri | withAppendedPath(Uri baseUri, String pathSegment) Creates a new Uri by appending an already-encoded path segment to a base Uri. |