Here you can find the source of substring(byte[] src, int start, int len)
public static byte[] substring(byte[] src, int start, int len)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] substring(byte[] src, int start, int len) { byte[] res = new byte[len]; System.arraycopy(src, start, res, 0, len); return res; }/*from www. j a v a 2s. co m*/ }