Package io.ktor.utils.io.streams

Extensions for External Classes

java.io.InputStream

java.io.OutputStream

Functions

inputStream

fun ByteReadPacket.inputStream(): InputStream

Creates InputStream adapter to the packet

outputStream

fun BytePacketBuilder.outputStream(): OutputStream

Creates OutputStream adapter to the builder

readerUTF8

fun ByteReadPacket.readerUTF8(): Reader

Creates Reader from the byte packet that decodes UTF-8 characters

writerUTF8

fun BytePacketBuilder.writerUTF8(): Writer

Creates Writer that encodes all characters in UTF-8 encoding