BigInteger.this

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 <i>big-endian</i> byte-order: the most significant byte is the element at index {@code off}. The {@code val} array is assumed to be unchanged for the duration of the constructor call.

An {@code IndexOutOfBoundsException} is thrown if the length of the array {@code val} is non-zero and either {@code off} is negative, {@code len} is negative, or {@code off+len} is greater than the length of {@code val}.

@param val byte array containing a sub-array which is the big-endian two's-complement binary representation of a BigInteger. @param off the start offset of the binary representation. @param len the number of bytes to use. @throws NumberFormatException {@code val} is zero bytes long. @throws 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.

Meta