public void copy ( int srcIdx , byte [ ] dst , int dstIdx , int length ) { if ( isOutOfBounds ( srcIdx , length , length ( ) ) ) { throw new IndexOutOfBoundsException ( "expected: " + "0 <= srcIdx(" + srcIdx + ") <= srcIdx + length(" + length + ") <= srcLen(" + length ( ) + ' ' ) ; } System . arraycopy ( value , srcIdx + offset , checkNotNull ( dst , "dst" ) , dstIdx , length ) ; }
Copies the content of this string to a byte array .