Uses of Class
inet.ipaddr.AddressStringException
Packages that use AddressStringException
Package
Description
Base classes for IP addresses and generic addresses.
Validation of address strings and creation of address representations from the validated strings.
-
Uses of AddressStringException in inet.ipaddr
Methods in inet.ipaddr that return AddressStringExceptionModifier and TypeMethodDescriptionHostName.getAddressStringException()
Returns the exception thrown for invalid ipv6 literal or invalid reverse DNS hosts.IPAddressString.getAddressStringException()
Returns the parse exception thrown by validate, rather than throwing it.Methods in inet.ipaddr that throw AddressStringExceptionModifier and TypeMethodDescriptionIPAddressString.convertToPrefixLength()
Converts this address to a prefix lengthIPAddressString.toAddress()
Produces theIPAddress
corresponding to this IPAddressString.IPAddressString.toAddress
(IPAddress.IPVersion version) Produces theIPAddress
of the specified address version corresponding to this IPAddressString.MACAddressString.toAddress()
Produces theMACAddress
corresponding to this MACAddressString.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.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 byIPAddressString.toAddress()
.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.Constructors in inet.ipaddr with parameters of type AddressStringExceptionModifierConstructorDescriptionHostNameException
(String host, AddressStringException e, String key) -
Uses of AddressStringException in inet.ipaddr.format.validate
Methods in inet.ipaddr.format.validate that return AddressStringExceptionMethods in inet.ipaddr.format.validate that throw AddressStringExceptionModifier and TypeMethodDescriptionHostIdentifierStringValidator.validateAddress
(IPAddressString fromString) HostIdentifierStringValidator.validateAddress
(MACAddressString fromString) Validator.validateAddress
(IPAddressString fromString) Validator.validateAddress
(MACAddressString fromString) int
HostIdentifierStringValidator.validatePrefix
(CharSequence fullAddr, IPAddress.IPVersion version) int
Validator.validatePrefix
(CharSequence fullAddr, IPAddress.IPVersion version)