Here you can find the source of arrayConcat(byte[] a, byte[] b)
protected static byte[] arrayConcat(byte[] a, byte[] b)
//package com.java2s; //License from project: Open Source License public class Main { protected static byte[] arrayConcat(byte[] a, byte[] b) { int lenA = a.length; int lenB = b.length; byte[] out = new byte[lenA + lenB]; System.arraycopy(a, 0, out, 0, lenA); System.arraycopy(b, 0, out, lenA, lenB); return out; }// w w w. j a v a 2s.co m }