Here you can find the source of getBytes(byte[] data, int offset, int len)
public static byte[] getBytes(byte[] data, int offset, int len)
//package com.java2s; public class Main { public static byte[] getBytes(byte[] data, int offset, int len) { byte[] tmp = new byte[len]; for (int i = 0; i < len; i++) { tmp[i] = data[offset + i];// w w w . j a v a 2 s .c om } return tmp; } }