Here you can find the source of arrayAppend(byte[] original, byte[] append)
public static byte[] arrayAppend(byte[] original, byte[] append)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] arrayAppend(byte[] original, byte[] append) { byte[] newArray = new byte[original.length + append.length]; System.arraycopy(original, 0, newArray, 0, original.length); System.arraycopy(append, 0, newArray, original.length, append.length); return newArray; }// w w w . java 2s . co m }