URI URI Class

Definition

A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by .

[Android.Runtime.Register("java/net/URI", ApiSince=1, DoNotGenerateAcw=true)]
public sealed class URI : Java.Lang.Object, IDisposable, Java.IO.ISerializable, Java.Lang.IComparable
type URI = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface IComparable
Inheritance
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

URI(String) URI(String)

Creates a new URI instance by parsing spec.

URI(String, String, String) URI(String, String, String)

Creates a new URI instance of the given unencoded component parts.

URI(String, String, String, Int32, String, String, String) URI(String, String, String, Int32, String, String, String)

Creates a new URI instance of the given unencoded component parts.

URI(String, String, String, String) URI(String, String, String, String)

Creates a new URI instance of the given unencoded component parts.

URI(String, String, String, String, String) URI(String, String, String, String, String)

Creates a new URI instance of the given unencoded component parts.

Properties

Authority Authority

Returns the decoded authority part of this URI, or null if this URI has no authority.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Fragment Fragment

Returns the decoded fragment of this URI, or null if this URI has no fragment.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Host Host

Returns the host of this URI, or null if this URI has no host.

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsAbsolute IsAbsolute

Returns true if this URI is absolute, which means that a scheme is defined.

IsOpaque IsOpaque

Returns true if this URI is opaque.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Path Path

Returns the decoded path of this URI, or null if this URI has no path.

PeerReference PeerReference Inherited from Object
Port Port

Returns the port number of this URI, or -1 if this URI has no explicit port.

Query Query

Returns the decoded query of this URI, or null if this URI has no query.

RawAuthority RawAuthority

Returns the encoded authority of this URI, or null if this URI has no authority.

RawFragment RawFragment

Gets the encoded fragment of this URI, or null if this URI has no fragment.

RawPath RawPath

Returns the encoded path of this URI, or null if this URI has no path.

RawQuery RawQuery

Returns the encoded query of this URI, or null if this URI has no query.

RawSchemeSpecificPart RawSchemeSpecificPart

Returns the encoded scheme-specific part of this URI, or null if this URI has no scheme-specific part.

RawUserInfo RawUserInfo

Returns the encoded user info of this URI, or null if this URI has no user info.

Scheme Scheme

Returns the scheme of this URI, or null if this URI has no scheme.

SchemeSpecificPart SchemeSpecificPart

Returns the decoded scheme-specific part of this URI, or null if this URI has no scheme-specific part.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
UserInfo UserInfo

Returns the decoded user info of this URI, or null if this URI has no user info.

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CompareTo(URI) CompareTo(URI)

Compares this URI with the given argument uri.

Create(String) Create(String)

Returns the URI formed by parsing uri.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Normalize() Normalize()

Normalizes the path part of this URI.

Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
ParseServerAuthority() ParseServerAuthority()

Tries to parse the authority component of this URI to divide it into the host, port, and user-info.

Relativize(URI) Relativize(URI)

Makes the given URI relative to a relative URI against the URI represented by this instance.

Resolve(String) Resolve(String)

Creates a new URI instance by parsing the given string relative and resolves the created URI against the URI represented by this instance.

Resolve(URI) Resolve(URI)

Resolves the given URI relative against the URI represented by this instance.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() ToArray<T>() Inherited from Object
ToASCIIString() ToASCIIString()

Returns the textual string representation of this URI instance using the US-ASCII encoding.

ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
ToURL() ToURL()

Converts this URI instance to a URL.

UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IComparable.CompareTo(Object) IComparable.CompareTo(Object)
IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to