ObjectInputStream.ReadLine Method

Definition

Caution

deprecated

Reads in a line that has been terminated by a \n, \r, \r\n or EOF.

[Android.Runtime.Register("readLine", "()Ljava/lang/String;", "GetReadLineHandler")]
[System.Obsolete("deprecated")]
public virtual string? ReadLine ();
[<Android.Runtime.Register("readLine", "()Ljava/lang/String;", "GetReadLineHandler")>]
[<System.Obsolete("deprecated")>]
abstract member ReadLine : unit -> string
override this.ReadLine : unit -> string

Returns

a String copy of the line.

Implements

Attributes

Exceptions

if an error occurs while reading from the source stream.

Remarks

Reads in a line that has been terminated by a \n, \r, \r\n or EOF.

This member is deprecated. This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives.

Java documentation for java.io.ObjectInputStream.readLine().

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