666 ifname = holder6.scope_ifname.getName();
667 holder6.scope_ifname_set = true;
668 }
669 ObjectOutputStream.PutField pfields = s.putFields();
670 pfields.put("ipaddress", holder6.ipaddress);
671 pfields.put("scope_id", holder6.scope_id);
672 pfields.put("scope_id_set", holder6.scope_id_set);
673 pfields.put("scope_ifname_set", holder6.scope_ifname_set);
674 pfields.put("ifname", ifname);
675 s.writeFields();
676 }
677
678 /**
679 * Utility routine to check if the InetAddress is an IP multicast
680 * address. 11111111 at the start of the address identifies the
681 * address as being a multicast address.
682 *
683 * @return a {@code boolean} indicating if the InetAddress is an IP
684 * multicast address
685 *
686 * @since JDK1.1
687 */
688 @Override
689 public boolean isMulticastAddress() {
690 return holder6.isMulticastAddress();
691 }
692
693 /**
694 * Utility routine to check if the InetAddress in a wildcard address.
695 *
696 * @return a {@code boolean} indicating if the Inetaddress is
697 * a wildcard address.
698 *
699 * @since 1.4
700 */
701 @Override
702 public boolean isAnyLocalAddress() {
703 return holder6.isAnyLocalAddress();
704 }
705
706 /**
|
666 ifname = holder6.scope_ifname.getName();
667 holder6.scope_ifname_set = true;
668 }
669 ObjectOutputStream.PutField pfields = s.putFields();
670 pfields.put("ipaddress", holder6.ipaddress);
671 pfields.put("scope_id", holder6.scope_id);
672 pfields.put("scope_id_set", holder6.scope_id_set);
673 pfields.put("scope_ifname_set", holder6.scope_ifname_set);
674 pfields.put("ifname", ifname);
675 s.writeFields();
676 }
677
678 /**
679 * Utility routine to check if the InetAddress is an IP multicast
680 * address. 11111111 at the start of the address identifies the
681 * address as being a multicast address.
682 *
683 * @return a {@code boolean} indicating if the InetAddress is an IP
684 * multicast address
685 *
686 * @since 1.1
687 */
688 @Override
689 public boolean isMulticastAddress() {
690 return holder6.isMulticastAddress();
691 }
692
693 /**
694 * Utility routine to check if the InetAddress in a wildcard address.
695 *
696 * @return a {@code boolean} indicating if the Inetaddress is
697 * a wildcard address.
698 *
699 * @since 1.4
700 */
701 @Override
702 public boolean isAnyLocalAddress() {
703 return holder6.isAnyLocalAddress();
704 }
705
706 /**
|