@Test public void testDecodeIpv6() throws Exception { assertNotNull(IpPrefixConv.decodeIpv6(null, true)); assertNotNull(IpPrefixConv.decodeIpv6(new byte[]{}, true)); List<IpPrefix> cmp = new ArrayList<>(); cmp.add(ipPrefix3); cmp.add(ipPrefix4); assertEquals(cmp, IpPrefixConv.decodeIpv6( new byte[]{-128, 32, 1, 13, -72, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 32, 32, 1, 0, -40}, true)); }
public static List<IpPrefix> decodeIpv6(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV6_PREFIX, array, compact); }
IpPrefixConv { public static List<IpPrefix> decodeIpv6(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV6_PREFIX, array, compact); } }
IpPrefixConv { public static List<IpPrefix> decodeIpv6(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV6_PREFIX, array, compact); } private  IpPrefixConv(); }
IpPrefixConv { public static List<IpPrefix> decodeIpv6(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV6_PREFIX, array, compact); } private  IpPrefixConv(); static IpPrefix createPrefix(String ipPrefix); static List<IpPrefix> decodeIpv4(byte[] array, boolean compact); static List<IpPrefix> decodeIpv6(byte[] array, boolean compact); static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2); static int getBytesLength(int prefixLength); static int getPrefixLength(IpPrefix ipPrefix); static InetSocketAddress parseInetPrefix(String ipPrefix); static byte[] toBytes(IpPrefix prefix); static byte[] toBytes(List<IpPrefix> prefixes); static String toString(IpPrefix prefix); static String toString(List<IpPrefix> prefixes); static byte[] trimPrefix(byte[] prefix, int blength); }
IpPrefixConv { public static List<IpPrefix> decodeIpv6(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV6_PREFIX, array, compact); } private  IpPrefixConv(); static IpPrefix createPrefix(String ipPrefix); static List<IpPrefix> decodeIpv4(byte[] array, boolean compact); static List<IpPrefix> decodeIpv6(byte[] array, boolean compact); static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2); static int getBytesLength(int prefixLength); static int getPrefixLength(IpPrefix ipPrefix); static InetSocketAddress parseInetPrefix(String ipPrefix); static byte[] toBytes(IpPrefix prefix); static byte[] toBytes(List<IpPrefix> prefixes); static String toString(IpPrefix prefix); static String toString(List<IpPrefix> prefixes); static byte[] trimPrefix(byte[] prefix, int blength);  }