- forString
Returns the InetAddress having the given string representation.This deliberately
avoids all nameserv
- toAddrString
Returns the string representation of an InetAddress.For IPv4 addresses, this is
identical to InetAdd
- bytesToInetAddress
Convert a byte array into an InetAddress. InetAddress#getByAddress is documented
as throwing a check
- compressLongestRunOfZeroes
Identify and mark the longest run of zeroes in an IPv6 address.Only runs of two
or more hextets are
- convertDottedQuadToHex
- hextetsToIPv6String
Convert a list of hextets into a human-readable IPv6 address.In order for "::"
compression to work,
- ipStringToBytes
- parseCidr
Parse an IP address and its prefix length using the CIDR notation.
- parseHextet
- textToNumericFormatV4
- textToNumericFormatV6
- toUriString
Returns the string representation of an InetAddress suitable for inclusion in a
URI.For IPv4 address