jdk/src/java.base/share/classes/java/net/Inet6Address.java
changeset 32649 2ee9017c7597
parent 25859 3317bb8137f4
child 33674 566777f73c32
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   171  * @since 1.4
   171  * @since 1.4
   172  */
   172  */
   173 
   173 
   174 public final
   174 public final
   175 class Inet6Address extends InetAddress {
   175 class Inet6Address extends InetAddress {
   176     final static int INADDRSZ = 16;
   176     static final int INADDRSZ = 16;
   177 
   177 
   178     /*
   178     /*
   179      * cached scope_id - for link-local address use only.
   179      * cached scope_id - for link-local address use only.
   180      */
   180      */
   181     private transient int cached_scope_id;  // 0
   181     private transient int cached_scope_id;  // 0
   920     public boolean isIPv4CompatibleAddress() {
   920     public boolean isIPv4CompatibleAddress() {
   921         return holder6.isIPv4CompatibleAddress();
   921         return holder6.isIPv4CompatibleAddress();
   922     }
   922     }
   923 
   923 
   924     // Utilities
   924     // Utilities
   925     private final static int INT16SZ = 2;
   925     private static final int INT16SZ = 2;
   926 
   926 
   927     /*
   927     /*
   928      * Convert IPv6 binary address into presentation (printable) format.
   928      * Convert IPv6 binary address into presentation (printable) format.
   929      *
   929      *
   930      * @param src a byte array representing the IPv6 numeric address
   930      * @param src a byte array representing the IPv6 numeric address