readText

fun InputStream.readText(charset: Charset = Charsets.UTF_8): String

Read this input stream to a string.

Return

The text contained in this input stream.

Author

Griefed

Parameters

charset

Charset to use for reading. Default is Charsets.UTF_8