public static int
addressLength(int family) {
	if (family == IPv4)
		return 4;
	if (family == IPv6)
		return 16;
	throw new IllegalArgumentException("unknown address family");
}
Returns the length of an address in a particular family.
@param family The address family, either IPv4 or IPv6.
@return The length of addresses in that family.
src/main/java/core/org/xbill/DNS/Address.java