flush

open override fun flush()

Flushes this output stream and forces any buffered output bytes to be written out.

Throws

kotlinx.io.IOException

if an I/O error occurs or if this stream has been closed.