write

open override fun write(b: Int)(source)

Writes the specified byte to this buffered output stream.

Since

0.1.0

Parameters

b

the byte to be written.

Throws

if an I/O error occurs.


open override fun write(b: ByteArray)(source)

Writes b.length bytes from the specified byte array to this buffered output stream.

Since

0.1.0

Parameters

b

the data.

Throws

if an I/O error occurs.


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

Writes len bytes from the specified byte array starting at offset off to this buffered output stream.

Ordinarily this method stores bytes from the given array into this stream's buffer, flushing the buffer to the underlying output stream as needed. If the requested length is at least as large as this stream's buffer, however, then this method will flush the buffer and write the bytes directly to the underlying output stream. Thus redundant BufferedOutputStreams will not copy data unnecessarily.

Since

0.1.0

Parameters

b

the data.

off

the start offset in the data.

len

the number of bytes to write.

Throws