IDataStream.readUTF

Overview | Methods | This Package | All Packages

IDataStream.readUTF

Reads a string from this stream using a length-prefixed UTF-8 format.

Syntax

public String readUTF()

Return Value

Returns the string value that was read.

Exceptions

IOException thrown if an I/O error occurs or if the stream does not support reading.

EOFException thrown if the end of the stream is reached while reading the string.

Remarks

UTF encoded strings are generally more space efficient than Unicode strings, but they also take more time to process.

See Also   writeUTF