@Test public void testDecodeIpv4() throws Exception { assertNotNull(IpPrefixConv.decodeIpv4(null, true)); assertNotNull(IpPrefixConv.decodeIpv4(new byte[]{}, true)); List<IpPrefix> cmp = new ArrayList<>(); cmp.add(ipPrefix1); cmp.add(ipPrefix2); assertEquals(cmp, IpPrefixConv.decodeIpv4(new byte[]{32, 127, 0, 0, 1, 16, 0, 0}, true)); }
public static List<IpPrefix> decodeIpv4(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV4_PREFIX, array, compact); }
IpPrefixConv { public static List<IpPrefix> decodeIpv4(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV4_PREFIX, array, compact); } }
IpPrefixConv { public static List<IpPrefix> decodeIpv4(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV4_PREFIX, array, compact); } private  IpPrefixConv(); }
IpPrefixConv { public static List<IpPrefix> decodeIpv4(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV4_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> decodeIpv4(byte[] array, boolean compact) throws UnknownHostException, UnknownPrefixException { return decode(IpPrefixType.IPV4_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);  }