Java android.net Uri fields, constructors, methods, implement or subclass

Example usage for Java android.net Uri fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.net Uri.

The text is from its open source code.

Field

UriEMPTY
The empty URI, equivalent to "".
Parcelable.CreatorCREATOR
Reads Uris from Parcels.

Method

BuilderbuildUpon()
Constructs a new builder, copying the attributes from this Uri.
Stringdecode(String s)
Decodes '%'-escaped octets in the given string using the UTF-8 scheme.
Stringencode(String s, String allow)
Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme.
Stringencode(String s)
Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme.
booleanequals(Object o)
Compares this Uri to another object for equality.
UrifromFile(File file)
Creates a Uri from a file.
UrifromParts(String scheme, String ssp, String fragment)
Creates an opaque Uri from the given components.
StringgetAuthority()
Gets the decoded authority part of this URI.
booleangetBooleanQueryParameter(String key, boolean defaultValue)
Searches the query string for the first value with the given key and interprets it as a boolean value.
StringgetEncodedAuthority()
Gets the encoded authority part of this URI.
StringgetEncodedFragment()
Gets the encoded fragment part of this URI, everything after the '#'.
StringgetEncodedPath()
Gets the encoded path.
StringgetEncodedQuery()
Gets the encoded query component from this URI.
StringgetEncodedSchemeSpecificPart()
Gets the scheme-specific part of this URI, i.e. everything between the scheme separator ':' and the fragment separator '#'.
StringgetEncodedUserInfo()
Gets the encoded user information from the authority.
StringgetFragment()
Gets the decoded fragment part of this URI, everything after the '#'.
StringgetHost()
Gets the encoded host from the authority for this URI.
StringgetLastPathSegment()
Gets the decoded last segment in the path.
StringgetPath()
Gets the decoded path.
ListgetPathSegments()
Gets the decoded path segments.
intgetPort()
Gets the port from the authority for this URI.
StringgetQuery()
Gets the decoded query component from this URI.
StringgetQueryParameter(String key)
Searches the query string for the first value with the given key.
SetgetQueryParameterNames()
Returns a set of the unique names of all query parameters.
ListgetQueryParameters(String key)
Searches the query string for parameter values with the given key.
StringgetScheme()
Gets the scheme of this URI.
StringgetSchemeSpecificPart()
Gets the scheme-specific part of this URI, i.e. everything between the scheme separator ':' and the fragment separator '#'.
StringgetUserInfo()
Gets the decoded user information from the authority.
inthashCode()
Hashes the encoded string represention of this Uri consistently with #equals(Object) .
booleanisAbsolute()
Returns true if this URI is absolute, i.e. if it contains an explicit scheme.
booleanisHierarchical()
Returns true if this URI is hierarchical like "http://google.com".
booleanisOpaque()
Returns true if this URI is opaque like "mailto:nobody@google.com".
booleanisRelative()
Returns true if this URI is relative, i.e. if it doesn't contain an explicit scheme.
Uriparse(String uriString)
Creates a Uri which parses the given encoded URI string.
StringtoString()
Returns the encoded string representation of this URI.
UriwithAppendedPath(Uri baseUri, String pathSegment)
Creates a new Uri by appending an already-encoded path segment to a base Uri.