Share via


DataInputStream.ReadUTF Method

Definition

Overloads

ReadUTF()

See the general contract of the readUTF method of DataInput.

ReadUTF(IDataInput)

Reads from the stream in a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as a String.

ReadUTF()

See the general contract of the readUTF method of DataInput.

[Android.Runtime.Register("readUTF", "()Ljava/lang/String;", "")]
public string? ReadUTF ();
[<Android.Runtime.Register("readUTF", "()Ljava/lang/String;", "")>]
abstract member ReadUTF : unit -> string
override this.ReadUTF : unit -> string

Returns

a Unicode string.

Implements

Attributes

Exceptions

Remarks

See the general contract of the readUTF method of DataInput.

Bytes for this operation are read from the contained input stream.

Java documentation for java.io.DataInputStream.readUTF().

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

ReadUTF(IDataInput)

Reads from the stream in a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as a String.

[Android.Runtime.Register("readUTF", "(Ljava/io/DataInput;)Ljava/lang/String;", "")]
public static string? ReadUTF (Java.IO.IDataInput? in);
[<Android.Runtime.Register("readUTF", "(Ljava/io/DataInput;)Ljava/lang/String;", "")>]
static member ReadUTF : Java.IO.IDataInput -> string

Parameters

in
IDataInput

a data input stream.

Returns

a Unicode string.

Attributes

Exceptions

Remarks

Reads from the stream in a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as a String. The details of the modified UTF-8 representation are exactly the same as for the readUTF method of DataInput.

Java documentation for java.io.DataInputStream.readUTF(java.io.DataInput).

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