iterator

Construct an iterator from the Reader.


fun InputStream.iterator(charset: Charset = Charsets.UTF_8): CharIterator

Construct an iterator from a buffered reader created on this input stream using UTF-8 or the specified charset.

Parameters

charset

the Charset used for the iterator.