question: public byte [ ] toByteArray ( ) { byte [ ] newArray = new byte [ count ] ; System . arraycopy ( buf , 0 , newArray , 0 , count ) ; return newArray ; }
target:  Returns the contents of this ByteArrayOutputStream as a byte array. Any changes made to the receiver after returning will not be reflected in the byte array returned to the caller.