Here you can find the source of arrayExtract(byte[] in, int offset, int len)
static public byte[] arrayExtract(byte[] in, int offset, int len)
//package com.java2s; //License from project: Open Source License public class Main { static public byte[] arrayExtract(byte[] in, int offset, int len) { byte[] out = new byte[len]; System.arraycopy(in, offset, out, 0, len); return out; }//www. j ava2 s. co m static public void arrayCopy(byte[] dest, int offset, byte[] in) { System.arraycopy(in, 0, dest, offset, in.length); } }