code: public static boolean isMappedIPv4Address(Inet6Address ip) {
          byte bytes[] = ip.getAddress();
          return ((bytes[0] == 0x00) && (bytes[1] == 0x00) &&
                  (bytes[2] == 0x00) && (bytes[3] == 0x00) &&
                  (bytes[4] == 0x00) && (bytes[5] == 0x00) &&
                  (bytes[6] == 0x00) && (bytes[7] == 0x00) &&
                  (bytes[8] == 0x00) && (bytes[9] == 0x00) &&
                  (bytes[10] == (byte)0xff) && (bytes[11] == (byte)0xff));
      }
docs: Evaluates whether the argument is an IPv6 "mapped" address.
  
  <p>An "IPv4 mapped", or "mapped", address is one with 80 leading
  bits of zero followed by 16 bits of 1, with the remaining 32 bits interpreted as an
  IPv4 address.  These are conventionally represented in string
  literals as {@code "::ffff:192.168.0.1"}, though {@code "::ffff:c0a8:1"} is
  also considered an IPv4 compatible address (and equivalent to
  {@code "::192.168.0.1"}).
  
  @param ip {@link Inet6Address} to be examined for embedded IPv4 mapped address format
  @return {@code true} if the argument is a valid "mapped" address