java.lang.Object
com.github.hypfvieh.util.NetUtil

public final class NetUtil extends Object
  • Methodendetails

    • getHostName

      public static String getHostName(String _ipAddress)
      Get the host name of a local address, if available.
      Parameter:
      _ipAddress - the IP address
      Gibt zurück:
      the host name, or the original IP if name not available
    • isIPv4Address

      public static boolean isIPv4Address(String _ipAddress)
      Checks if given String is an IPv4 address.
      Parameter:
      _ipAddress -
      Gibt zurück:
      true if valid address, false otherwise
    • isIPv6Address

      public static boolean isIPv6Address(String _ipAddress)
      Checks if given String is an IPv6 address.
      Parameter:
      _ipAddress -
      Gibt zurück:
      true if valid address, false otherwise
    • isIPv4orIPv6Address

      public static boolean isIPv4orIPv6Address(String _ipAddress)
      Checks if given String is either a valid IPv4 or IPv6 address.
      Parameter:
      _ipAddress -
      Gibt zurück:
      true if valid address, false otherwise