asOutputStream
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
If isOpen is false.