String ipv6prefix="240E00F0004CB24F";
String ipv6prefixdelete="3C240E00F008CCC880";
BigInteger bigint = new BigInteger(ipv6prefix, 16);
BigInteger bigintdele = new BigInteger(ipv6prefixdelete, 16);
byte[] array = bigint.toByteArray();
转换代码如上。
String ipv6prefix="240E00F0004CB24F";
String ipv6prefixdelete="3C240E00F008CCC880";
BigInteger bigint = new BigInteger(ipv6prefix, 16);
BigInteger bigintdele = new BigInteger(ipv6prefixdelete, 16);
byte[] array = bigint.toByteArray();
转换代码如上。
转载于:https://my.oschina.net/u/2308739/blog/1540123