Udostępnij za pośrednictwem


FileInputStream.Read Method

Definition

Reads a byte of data from this input stream.

[Android.Runtime.Register("read", "()I", "GetReadHandler")]
public override int Read ();
[<Android.Runtime.Register("read", "()I", "GetReadHandler")>]
override this.Read : unit -> int

Returns

the next byte of data, or -1 if the end of the file is reached.

Attributes

Exceptions

Remarks

Reads a byte of data from this input stream. This method blocks if no input is yet available.

Java documentation for java.io.FileInputStream.read().

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