java.lang.Object
com.github.hypfvieh.util.NetUtil
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringgetHostName(String _ipAddress) Get the host name of a local address, if available.static booleanisIPv4Address(String _ipAddress) Checks if given String is an IPv4 address.static booleanisIPv4orIPv6Address(String _ipAddress) Checks if given String is either a valid IPv4 or IPv6 address.static booleanisIPv6Address(String _ipAddress) Checks if given String is an IPv6 address.
-
Methodendetails
-
getHostName
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
Checks if given String is an IPv4 address.- Parameter:
_ipAddress-- Gibt zurück:
- true if valid address, false otherwise
-
isIPv6Address
Checks if given String is an IPv6 address.- Parameter:
_ipAddress-- Gibt zurück:
- true if valid address, false otherwise
-
isIPv4orIPv6Address
Checks if given String is either a valid IPv4 or IPv6 address.- Parameter:
_ipAddress-- Gibt zurück:
- true if valid address, false otherwise
-