Java tutorial
//package com.java2s; public class Main { public static byte[] substring(byte[] a, int start, int len) { byte[] rval = new byte[len]; System.arraycopy(a, start, rval, 0, len); return rval; } }