- <init>
Constructs a new ByteArrayOutputStream with a default size of size bytes. If
more than size bytes ar
- toByteArray
Returns the contents of this ByteArrayOutputStream as a byte array. Any changes
made to the receiver
- write
Writes count bytes from the byte array buffer starting at offset index to this
stream.
- toString
- close
Closes this stream. This releases system resources used for this stream.
- size
Returns the total number of bytes written to this stream so far.
- reset
Resets this stream to the beginning of the underlying byte array. All subsequent
writes will overwri
- flush
- writeTo
Takes the contents of this stream and writes it to the output stream out.
- expand
- ensureCapacity
Increases the capacity if necessary to ensure that it can hold at least the
number of elements speci
- grow
Increases the capacity to ensure that it can hold at least the number of
elements specified by the m