public void write ( final byte [ ] src ) { if ( src == null ) throw new NullPointerException ( ) ; if ( src . length < buffer . length - pos ) { System . arraycopy ( src , 0 , buffer , pos , src . length ) ; pos += src . length ; size += src . length ; return ; } writeLoop ( src , 0 , src . length ) ; }
Copies the given array to the internal buffer .