apidocs / com.srv4pos.commons.io / ByteArrayOutputStream / writeTo

writeTo

open fun writeTo(out: OutputStream!): Unit

Writes the entire contents of this byte stream to the specified output stream.

Parameters

out - OutputStream!: the output stream to write to

Exceptions

IOException - if an I/O error occurs, such as if the stream is closed

See Also
java.io.ByteArrayOutputStream#writeTo(OutputStream)