@Test public void test_generate_ARPA() { NetworkInBytes networkInBytes = ArpaUtil.parseArpa("1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa"); String hex1 = DatatypeConverter.printHexBinary(networkInBytes .getStartAddress()); String hex2 = DatatypeConverter .printHexBinary(networkInBytes.getEndAddress()); }
public static NetworkInBytes parseArpa(String name) { LOGGER.debug("parseArpa:{}", name); if (StringUtils.isEmpty(name)) { return null; } else if (StringUtils.endsWith(name, DomainUtil.IPV4_ARPA_SUFFIX)) { return parseIpV4Arpa(name); } else if (StringUtils.endsWith(name, DomainUtil.IPV6_ARPA_SUFFIX)) { return parseIpV6Arpa(name); } return null; }
ArpaUtil { public static NetworkInBytes parseArpa(String name) { LOGGER.debug("parseArpa:{}", name); if (StringUtils.isEmpty(name)) { return null; } else if (StringUtils.endsWith(name, DomainUtil.IPV4_ARPA_SUFFIX)) { return parseIpV4Arpa(name); } else if (StringUtils.endsWith(name, DomainUtil.IPV6_ARPA_SUFFIX)) { return parseIpV6Arpa(name); } return null; } }
ArpaUtil { public static NetworkInBytes parseArpa(String name) { LOGGER.debug("parseArpa:{}", name); if (StringUtils.isEmpty(name)) { return null; } else if (StringUtils.endsWith(name, DomainUtil.IPV4_ARPA_SUFFIX)) { return parseIpV4Arpa(name); } else if (StringUtils.endsWith(name, DomainUtil.IPV6_ARPA_SUFFIX)) { return parseIpV6Arpa(name); } return null; } private  ArpaUtil(); }
ArpaUtil { public static NetworkInBytes parseArpa(String name) { LOGGER.debug("parseArpa:{}", name); if (StringUtils.isEmpty(name)) { return null; } else if (StringUtils.endsWith(name, DomainUtil.IPV4_ARPA_SUFFIX)) { return parseIpV4Arpa(name); } else if (StringUtils.endsWith(name, DomainUtil.IPV6_ARPA_SUFFIX)) { return parseIpV6Arpa(name); } return null; } private  ArpaUtil(); static NetworkInBytes parseArpa(String name); }
ArpaUtil { public static NetworkInBytes parseArpa(String name) { LOGGER.debug("parseArpa:{}", name); if (StringUtils.isEmpty(name)) { return null; } else if (StringUtils.endsWith(name, DomainUtil.IPV4_ARPA_SUFFIX)) { return parseIpV4Arpa(name); } else if (StringUtils.endsWith(name, DomainUtil.IPV6_ARPA_SUFFIX)) { return parseIpV6Arpa(name); } return null; } private  ArpaUtil(); static NetworkInBytes parseArpa(String name);  }