Here you can find the source of subset(byte[] array, int start, int length)
public static byte[] subset(byte[] array, int start, int length)
//package com.java2s; // it under the terms of the GNU Lesser General Public License as published by public class Main { public static byte[] subset(byte[] array, int start, int length) { byte[] result = new byte[length]; System.arraycopy(array, start, result, 0, length); return result; }/*from ww w . j av a 2 s . c o m*/ }