private static byte[] copy_buffer(byte[] buffer,int sOffset,int len){
  byte[] newData=new byte[len];
  System.arraycopy(buffer,sOffset,newData,0,len);
  return newData;
}

private static byte [ ] copy_buffer ( byte [ ] buffer , int sOffset , int len ) { byte [ ] newData = new byte [ len ] ; System . arraycopy ( buffer , sOffset , newData , 0 , len ) ; return newData ; }
wrapped system function arraycopy
