Skip to content

okio / okio / BufferedSource / readString

readString

(jvm) abstract fun readString(charset:Charset):String

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

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

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