inputStream

open suspend override fun inputStream(path: Path): Source(source)

Creates a Source for reading from a file at the specified path. The returned Source is buffered. It is created with Dispatchers.IO context.

Return

A buffered Source object for reading.

Parameters

path

The path to read from.

Throws

if path doesn't exist or isn't a regular file.

if an I/O error occurs during Source creation.