Package | Description |
---|---|
inet.ipaddr |
Base classes for IP addresses and generic addresses.
|
Modifier and Type | Method and Description |
---|---|
AddressStringException |
IPAddressString.getAddressStringException()
Returns the parse exception thrown by validate, rather than throwing it.
|
AddressStringException |
HostName.getAddressStringException()
Returns the exception thrown for invalid ipv6 literal or invalid reverse DNS hosts.
|
Modifier and Type | Method and Description |
---|---|
String |
IPAddressString.convertToPrefixLength()
Converts this address to a prefix length
|
IPAddress |
IPAddressString.toAddress()
Produces the
IPAddress corresponding to this IPAddressString. |
MACAddress |
MACAddressString.toAddress()
Produces the
MACAddress corresponding to this MACAddressString. |
IPAddress |
IPAddressString.toAddress(IPAddress.IPVersion version)
Produces the
IPAddress of the specified address version corresponding to this IPAddressString. |
IPAddressDivisionSeries |
IPAddressString.toDivisionGrouping()
Returns a representation of the address string, the address string represented "as-is", converted to value ranges with bit sizes matching the original string.
|
IPAddress |
IPAddressString.toHostAddress()
If this address string was constructed from a string comprising of a host address with prefix length or mask,
then this provides just the host address, rather than the address with the prefix or mask applied that is
provided by
IPAddressString.toAddress() . |
IPAddressSeqRange |
IPAddressString.toSequentialRange()
Returns the range of sequential addresses from the lowest address specified in this address string to the highest.
|
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 |
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.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(String host,
AddressStringException e,
String key) |