byteInputStream

inline fun String.byteInputStream(charset: Charset = Charsets.UTF_8): ByteArrayInputStream(source)

Creates a new byte input stream for the string.

Since Kotlin

1.0