wrap

fun wrap(stream: InputStream, encoding: Charset? = null): Readable

Wrap the provided InputStream as a Readable.

Return

The wrapped readable stream.

Parameters

stream

The input stream to wrap.