public BigInteger (byte[] val, int off, int len)

Translates a byte sub-array containing the two's-complement binary representation of a BigInteger into a BigInteger. The sub-array is specified via an offset into the array and a length. The sub-array is assumed to be in big-endian byte-order: the most significant byte is the element at index off. The val array is assumed to be unchanged for the duration of the constructor call. An IndexOutOfBoundsException is thrown if the length of the array val is non-zero and either off is negative, len is negative, or off+len is greater than the length of val.

Parameters:
val    byte array containing a sub-array which is the big-endian two's-complement binary representation of a BigInteger.
off    the start offset of the binary representation.
len    the number of bytes to use.

Exceptions:
NumberFormatException    val is zero bytes long.
IndexOutOfBoundsException    if the provided array offset and length would cause an index into the byte array to be negative or greater than or equal to the array length.

Since:  9