open fun toByteArray(): ByteArray!
Gets the curent contents of this byte stream as a byte array. The result is independent of this stream.
Return ByteArray!: the current contents of this output stream, as a byte array
See Also java.io.ByteArrayOutputStream#toByteArray()