yep they do: see java.io.ByteArrayOutputStream.html#writeTo(java.io.OutputStream)