Here you can find the source of substr(byte[] array, int start, int count)
public static byte[] substr(byte[] array, int start, int count)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static byte[] substr(byte[] array, int start, int count) { return Arrays.copyOfRange(array, start, start + count); }//from w w w . j av a2 s .com }