Share via


ObjectInputStream.Read Method

Definition

Reads a byte of data.

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

Returns

the byte read, or -1 if the end of the stream is reached.

Implements

Attributes

Exceptions

if an error occurs while reading from this stream.

Remarks

Reads a byte of data. This method will block if no input is available.

Java documentation for java.io.ObjectInputStream.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