Here you can find the source of deepCopy(byte[] org)
public static byte[] deepCopy(byte[] org)
//package com.java2s; //License from project: Apache License public class Main { public static byte[] deepCopy(byte[] org) { if (org == null) return null; byte[] result = new byte[org.length]; System.arraycopy(org, 0, result, 0, org.length); return result; }/* www. ja v a 2 s. c o m*/ }