public BigInteger (byte[] val)

Translates a byte array containing the two's-complement binary representation of a BigInteger into a BigInteger. The input array is assumed to be in big-endian byte-order: the most significant byte is in the zeroth element. The val array is assumed to be unchanged for the duration of the constructor call.

Parameters:
val    big-endian two's-complement binary representation of a BigInteger.

Exceptions:
NumberFormatException    val is zero bytes long.