read

open suspend override fun read(b: CharBuffer): Int

Reads characters into the given CharBuffer.

Return

the number of characters read, or -1 if the end of the stream has been reached

Parameters

b

the buffer to read characters into

Throws

if the buffer is read-only

if an I/O error occurs