Package org.minidns.util
Class InetAddressUtil
- java.lang.Object
-
- org.minidns.util.InetAddressUtil
-
public class InetAddressUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InetAddressUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.net.InetAddress
convertToInetAddressIfPossible(java.lang.CharSequence address)
static java.net.Inet4Address
ipv4From(java.lang.CharSequence cs)
static java.net.Inet6Address
ipv6From(java.lang.CharSequence cs)
static boolean
isIpAddress(java.lang.CharSequence address)
static boolean
isIpV4Address(java.lang.CharSequence address)
static boolean
isIpV6Address(java.lang.CharSequence address)
static DnsName
reverseIpAddressOf(java.net.Inet4Address inet4Address)
static DnsName
reverseIpAddressOf(java.net.Inet6Address inet6Address)
-
-
-
Constructor Detail
-
InetAddressUtil
public InetAddressUtil()
-
-
Method Detail
-
ipv4From
public static java.net.Inet4Address ipv4From(java.lang.CharSequence cs)
-
ipv6From
public static java.net.Inet6Address ipv6From(java.lang.CharSequence cs)
-
isIpV4Address
public static boolean isIpV4Address(java.lang.CharSequence address)
-
isIpV6Address
public static boolean isIpV6Address(java.lang.CharSequence address)
-
isIpAddress
public static boolean isIpAddress(java.lang.CharSequence address)
-
convertToInetAddressIfPossible
public static java.net.InetAddress convertToInetAddressIfPossible(java.lang.CharSequence address)
-
reverseIpAddressOf
public static DnsName reverseIpAddressOf(java.net.Inet6Address inet6Address)
-
reverseIpAddressOf
public static DnsName reverseIpAddressOf(java.net.Inet4Address inet4Address)
-
-