URL.GetContent(Class[]) Method

Definition

Gets the contents of this URL.

[Android.Runtime.Register("getContent", "([Ljava/lang/Class;)Ljava/lang/Object;", "")]
public Java.Lang.Object? GetContent (Java.Lang.Class[]? classes);
[<Android.Runtime.Register("getContent", "([Ljava/lang/Class;)Ljava/lang/Object;", "")>]
member this.GetContent : Java.Lang.Class[] -> Java.Lang.Object

Parameters

classes
Class[]

an array of Java types

Returns

the content object of this URL that is the first match of the types specified in the classes array. null if none of the requested types are supported.

Attributes

Exceptions

Remarks

Gets the contents of this URL. This method is a shorthand for: <blockquote>

openConnection().getContent(Class[])

</blockquote>

Added in 1.3.

Java documentation for java.net.URL.getContent(java.lang.Class[]).

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.

Applies to