OutputStream that collects the written data in memory and allows to query it as a byte array.
private
Reserves space for data - useful for optimization.
Resets the stream to its initial state containing no data.
An array with all data written to the stream so far.
See Implementation
OutputStream that collects the written data in memory and allows to query it as a byte array.