asOutputStream

@JvmStatic
fun FileStream.Write.asOutputStream(closeParentOnClose: Boolean): OutputStream(source)

Converts the provided Write stream to an OutputStream.

Return

An OutputStream.

Parameters

closeParentOnClose

If true, closure of the OutputStream will also close the Write stream. If false, only the OutputStream will be closed when OutputStream.close is called.

Throws