public static final void getByteArray ( byte [ ] data , int offset , int size , byte [ ] buffer , int bufferOffset ) { System . arraycopy ( data , offset , buffer , bufferOffset , size ) ; }
This method extracts a portion of a byte array and writes it into another byte array .