List of utility methods to do Byte Array Copy Range
byte[] | copyOfRange(byte[] src, int from, int to) copy Of Range if (from < 0 || from >= src.length || to < from || to > src.length) return new byte[] {}; byte[] tmp = new byte[from]; byte[] result = new byte[to - from]; ByteArrayInputStream input = new ByteArrayInputStream(src); input.read(tmp, 0, tmp.length); input.read(result, 0, result.length); try { ... |