Here you can find the source of doubleArraySize(byte[] array)
private static final byte[] doubleArraySize(byte[] array)
//package com.java2s; //License from project: GNU General Public License public class Main { private static final byte[] doubleArraySize(byte[] array) { byte[] temp = new byte[array.length * 2]; System.arraycopy(array, 0, temp, 0, array.length); return temp; }/*from w w w .jav a2s .co m*/ }