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

toByteArray

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()