open fun writeTo(out: OutputStream!): Unit
Writes the entire contents of this byte stream to the specified output stream.
out - OutputStream!: the output stream to write to
IOException - if an I/O error occurs, such as if the stream is closed
See Also
java.io.ByteArrayOutputStream#writeTo(OutputStream)