write

open override fun write(b: Int)

Writes a byte. Will block until the byte is actually written.

Parameters

b

the byte to be written

Throws

IOException

if an I/O error has occurred


open override fun write(b: ByteArray, off: Int, len: Int)

Writes an array of bytes. Will block until the bytes are actually written.

Parameters

b

the data to be written

off

the start offset of the data

len

the number of bytes to be written

Throws

IOException

if an I/O error has occurred