ByteArrayOutputStream.toByteArray

Creates a newly allocated byte array. Its size is the current size of this output stream and the valid contents of the buffer have been copied into it.

@return the current contents of this output stream, as a byte array. @see hunt.stream.ByteArrayOutputStream#size()

class ByteArrayOutputStream
byte[]
toByteArray
(
bool canCopy = true
)

Meta