Package | Description |
---|---|
inet.ipaddr |
Modifier and Type | Method and Description |
---|---|
AddressStringException |
HostName.getAddressStringException()
Returns the exception thrown for invalid ipv6 literal or invalid reverse DNS hosts.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
IPAddressString.convertToPrefixLength()
Converts this address to a prefix length
|
MACAddress |
MACAddressString.toAddress()
Produces the
MACAddress corresponding to this MACAddressString. |
IPAddress |
IPAddressString.toAddress()
Produces the
IPAddress corresponding to this IPAddressString. |
IPAddress |
IPAddressString.toAddress(IPAddress.IPVersion version)
Produces the
IPAddress of the specified address version corresponding to this IPAddressString. |
IPAddress |
IPAddressString.toHostAddress()
If this address string was constructed from a host address with prefix,
then this provides just the host address, rather than the address with the prefix
provided by
IPAddressString.toAddress() that incorporates the prefix. |
void |
MACAddressString.validate()
Validates this string is a valid address, and if not, throws an exception with a descriptive message indicating why it is not.
|
void |
IPAddressString.validate()
Validates that this string is a valid address, and if not, throws an exception with a descriptive message indicating why it is not.
|
void |
IPAddressString.validateIPv4()
Validates that this string is a valid IPv4 address, and if not, throws an exception with a descriptive message indicating why it is not.
|
void |
IPAddressString.validateIPv6()
Validates that this string is a valid IPv6 address, and if not, throws an exception with a descriptive message indicating why it is not.
|
Constructor and Description |
---|
HostNameException(java.lang.String host,
AddressStringException e,
java.lang.String key) |