equal
deleted
inserted
replaced
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 |