ByteArrayOutputStream.toByteArray

ByteArrayOutputStream.toByteArray

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized byte[] toByteArray()
Returns
the current contents of this output stream, as a byte array.
Description
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.

See Also
size