readString

abstract fun readString(charset: Charset): String

Removes all bytes from this, decodes them as charset, and returns the string.

abstract fun readString(byteCount: Long, charset: Charset): String

Removes byteCount bytes from this, decodes them as charset, and returns the string.