write

open override fun write(b: Int)

Writes the specified byte to this ByteArrayOutputStream.

Parameters

b

the byte to be written.


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

Writes len bytes from the specified byte array starting at offset off to this ByteArrayOutputStream.

Parameters

b

{@inheritDoc}

off

{@inheritDoc}

len

{@inheritDoc}

Throws

if off is negative, len is negative, or len is greater than b.length - off