Java com.google.common.net InetAddresses fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.net InetAddresses fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.net InetAddresses.

The text is from its open source code.

Method

intcoerceToInteger(InetAddress ip)
Returns an integer representing an IPv4 address regardless of whether the supplied argument is an IPv4 address or not.
InetAddressdecrement(InetAddress address)
Returns a new InetAddress that is one less than the passed in address.
InetAddressforString(String ipString)
Returns the InetAddress having the given string representation.
InetAddressforUriString(String hostAddr)
Returns an InetAddress representing the literal IPv4 or IPv6 host portion of a URL, encoded in the format specified by RFC 3986 section 3.2.2.
Inet4AddressfromInteger(int address)
Returns an Inet4Address having the integer value specified by the argument.
InetAddressfromLittleEndianByteArray(byte[] addr)
Returns an address from a little-endian ordered byte array (the opposite of what InetAddress#getByAddress expects).
Inet4Addressget6to4IPv4Address(Inet6Address ip)
Returns the IPv4 address embedded in a 6to4 address.
Inet4AddressgetCoercedIPv4Address(InetAddress ip)
Coerces an IPv6 address into an IPv4 address.
Inet4AddressgetCompatIPv4Address(Inet6Address ip)
Returns the IPv4 address embedded in an IPv4 compatible address.
Inet4AddressgetEmbeddedIPv4ClientAddress(Inet6Address ip)
Examines the Inet6Address to extract the embedded IPv4 client address if the InetAddress is an IPv6 address of one of the specified address types that contain an embedded IPv4 address.
booleanhasEmbeddedIPv4ClientAddress(Inet6Address ip)
Examines the Inet6Address to determine if it is an IPv6 address of one of the specified address types that contain an embedded IPv4 address.
InetAddressincrement(InetAddress address)
Returns a new InetAddress that is one more than the passed in address.
booleanis6to4Address(Inet6Address ip)
Evaluates whether the argument is a 6to4 address.
booleanisCompatIPv4Address(Inet6Address ip)
Evaluates whether the argument is an IPv6 "compat" address.
booleanisInetAddress(String ipString)
Returns true if the supplied string is a valid IP string literal, false otherwise.
booleanisMappedIPv4Address(String ipString)
Evaluates whether the argument is an "IPv4 mapped" IPv6 address.
booleanisMaximum(InetAddress address)
Returns true if the InetAddress is either 255.255.255.255 for IPv4 or ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff for IPv6.
booleanisUriInetAddress(String ipString)
Returns true if the supplied string is a valid URI IP string literal, false otherwise.
StringtoAddrString(InetAddress ip)
Returns the string representation of an InetAddress .
StringtoUriString(InetAddress ip)
Returns the string representation of an InetAddress suitable for inclusion in a URI.