Class InetAddress

java.lang.Object
com.aoapps.net.InetAddress
All Implemented Interfaces:
DtoFactory<InetAddress>, Internable<InetAddress>, Serializable, Comparable<InetAddress>

public final class InetAddress extends Object implements Comparable<InetAddress>, Serializable, DtoFactory<InetAddress>, Internable<InetAddress>
Represents either an IPv4 or an IPv6 IP address.

The internal storage is always that of an IPv6 address. IPv4 addresses are stored as IPv4-mapped addresses (::ffff:a.b.c.d), but their external representation is always dotted-decimal IPv4 notation (a.b.c.d).

Author:
AO Industries, Inc.
See Also: