Here you can find the source of copy(byte[] rSource)
static public byte[] copy(byte[] rSource)
//package com.java2s; public class Main { static public byte[] copy(byte[] rSource) { byte[] aResult = new byte[rSource.length]; System.arraycopy(rSource, 0, aResult, 0, aResult.length); return aResult; }/* w w w .j a v a 2 s . c o m*/ static public int[] copy(int[] rSource) { int[] aResult = new int[rSource.length]; System.arraycopy(rSource, 0, aResult, 0, aResult.length); return aResult; } }