readUTF

fun readUTF(length: Int): String(source)

Reads UTF-8 encoded string from the InputStream.

Return

the string that was read

Since

0.1.0

Parameters

length

the length of the string to read

Throws

if an I/O error occurs.

if the stream is closed

if the stream is not a valid UTF-8 encoded string

if this method is not supported.


Reads UTF-8 encoded string from the InputStream.

Return

the string that was read

Since

0.1.0

Throws

if an I/O error occurs.

if the stream is closed

if the stream is not a valid UTF-8 encoded string

if this method is not supported.