URL.OpenStream Method

Definition

Opens a connection to this URL and returns an InputStream for reading from that connection.

[Android.Runtime.Register("openStream", "()Ljava/io/InputStream;", "")]
public System.IO.Stream? OpenStream ();
[<Android.Runtime.Register("openStream", "()Ljava/io/InputStream;", "")>]
member this.OpenStream : unit -> System.IO.Stream

Returns

an input stream for reading from the URL connection.

Attributes

Exceptions

Remarks

Opens a connection to this URL and returns an InputStream for reading from that connection. This method is a shorthand for: <blockquote>

openConnection().getInputStream()

</blockquote>

Java documentation for java.net.URL.openStream().

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