Here you can find the source of arrayGetCenter(byte[] array, int location, int length)
public static byte[] arrayGetCenter(byte[] array, int location, int length)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] arrayGetCenter(byte[] array, int location, int length) { if (length <= 0) { return new byte[0]; }/* w ww . j a v a 2 s . co m*/ byte[] result; result = new byte[length]; try { System.arraycopy(array, location, result, 0, length); } catch (Exception e) { e.printStackTrace(); } return result; } }