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