Java.IO.RandomAccessFile.ReadUTF Method
Reads a string that is encoded in Java.IO.IDataInput from this file.

Syntax

[Android.Runtime.Register("readUTF", "()Ljava/lang/String;", "")]
public string ReadUTF ()

See Also

RandomAccessFile.WriteUTF(string)

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.EOFExceptionif the end of this file is detected.
Java.IO.IOExceptionif this file is closed or another I/O error occurs.
Java.IO.UTFDataFormatExceptionif the bytes read cannot be decoded into a character string.

Remarks

Reads a string that is encoded in Java.IO.IDataInput from this file. The number of bytes that must be read for the complete string is determined by the first two bytes read from the file. Blocks until all required bytes have been read, the end of the file is reached or an exception is thrown.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1