Class InetAddressUtil
java.lang.Object
org.archive.util.InetAddressUtil
InetAddress utility.
- Version:
- $Date$, $Revision$
- Author:
- stack
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddressgetIPHostAddress(String host) Returns InetAddress for passedhostIF its in IPV4 quads format (e.g. 128.128.128.128).
-
Field Details
-
IPV4_QUADS
ipv4 address.
-
-
Method Details
-
getIPHostAddress
Returns InetAddress for passedhostIF its in IPV4 quads format (e.g. 128.128.128.128).TODO: Move to an AddressParsingUtil class.
- Parameters:
host- Host name to examine.- Returns:
- InetAddress IF the passed name was an IP address, else null.
-
getAllLocalHostNames
-