共用方式為


URLConnection.InputStream Property

Definition

Returns an input stream that reads from this open connection.

public virtual System.IO.Stream? InputStream { [Android.Runtime.Register("getInputStream", "()Ljava/io/InputStream;", "GetGetInputStreamHandler")] get; }
[<get: Android.Runtime.Register("getInputStream", "()Ljava/io/InputStream;", "GetGetInputStreamHandler")>]
member this.InputStream : System.IO.Stream

Property Value

an input stream that reads from this open connection.

Attributes

Exceptions

if no InputStream could be created.

Remarks

Returns an input stream that reads from this open connection.

A SocketTimeoutException can be thrown when reading from the returned input stream if the read timeout expires before data is available for read.

Java documentation for java.net.URLConnection.getInputStream().

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