Here you can find the source of remove(byte[] data, int place)
public static byte[] remove(byte[] data, int place)
//package com.java2s; public class Main { public static byte[] remove(byte[] data, int place) { int len = data.length; byte[] result = new byte[(len - 1)]; for (int i = 0, j = 0; i < len; i++, j++) { if (i == place) { i++;//from w w w. ja va 2 s. co m } if (i >= len) { break; } result[j] = data[i]; } return result; } }